diff --git a/src/Tests/DotNetTemplatesHelper.cs b/src/Tests/DotNetTemplatesHelper.cs index e69f9b9..e495264 100644 --- a/src/Tests/DotNetTemplatesHelper.cs +++ b/src/Tests/DotNetTemplatesHelper.cs @@ -14,7 +14,7 @@ public static class DotNetTemplatesHelper public static async Task<(string StandardOutput, string StandardError)> ExecuteNew(string parameters, CancellationToken cancellationToken = default) { - var (stdout, stderr) = await Command.ReadAsync(dotNetCli, "new " + parameters, cancellationToken: cancellationToken).ConfigureAwait(false); + var (stdout, stderr) = await Command.ReadAsync(dotNetCli, "new " + parameters, ct: cancellationToken).ConfigureAwait(false); Console.WriteLine(stdout); if (!string.IsNullOrWhiteSpace(stderr)) @@ -65,12 +65,12 @@ static string FormatParameters(Dictionary parameters) public static async Task Build(string projectDirectory, CancellationToken cancellationToken = default) { var projectFile = Directory.EnumerateFiles(projectDirectory, "*.csproj").Single(); - _ = await Command.ReadAsync(dotNetCli, $" build {projectFile}", cancellationToken: cancellationToken).ConfigureAwait(false); + _ = await Command.ReadAsync(dotNetCli, $" build {projectFile}", ct: cancellationToken).ConfigureAwait(false); } public static async Task Restore(string projectDirectory, CancellationToken cancellationToken = default) { var projectFile = Directory.EnumerateFiles(projectDirectory, "*.csproj").Single(); - _ = await Command.ReadAsync(dotNetCli, $" restore {projectFile}", cancellationToken: cancellationToken).ConfigureAwait(false); + _ = await Command.ReadAsync(dotNetCli, $" restore {projectFile}", ct: cancellationToken).ConfigureAwait(false); } } \ No newline at end of file diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index fe99ad1..e9a9000 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -11,7 +11,7 @@ - +