Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Tests/DotNetTemplatesHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -65,12 +65,12 @@ static string FormatParameters(Dictionary<string, string> 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);
}
}
2 changes: 1 addition & 1 deletion src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageReference Include="NUnit.Analyzers" Version="4.11.2" />
<PackageReference Include="NUnit3TestAdapter" Version="6.0.1" />
<PackageReference Include="Particular.Approvals" Version="2.0.1" />
<PackageReference Include="SimpleExec" Version="12.1.0" />
<PackageReference Include="SimpleExec" Version="13.0.0" />
</ItemGroup>

</Project>