@@ -14,7 +14,7 @@ public static class DotNetTemplatesHelper
1414
1515 public static async Task < ( string StandardOutput , string StandardError ) > ExecuteNew ( string parameters , CancellationToken cancellationToken = default )
1616 {
17- var ( stdout , stderr ) = await Command . ReadAsync ( dotNetCli , "new " + parameters , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
17+ var ( stdout , stderr ) = await Command . ReadAsync ( dotNetCli , "new " + parameters , ct : cancellationToken ) . ConfigureAwait ( false ) ;
1818
1919 Console . WriteLine ( stdout ) ;
2020 if ( ! string . IsNullOrWhiteSpace ( stderr ) )
@@ -65,12 +65,12 @@ static string FormatParameters(Dictionary<string, string> parameters)
6565 public static async Task Build ( string projectDirectory , CancellationToken cancellationToken = default )
6666 {
6767 var projectFile = Directory . EnumerateFiles ( projectDirectory , "*.csproj" ) . Single ( ) ;
68- _ = await Command . ReadAsync ( dotNetCli , $ " build { projectFile } ", cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
68+ _ = await Command . ReadAsync ( dotNetCli , $ " build { projectFile } ", ct : cancellationToken ) . ConfigureAwait ( false ) ;
6969 }
7070
7171 public static async Task Restore ( string projectDirectory , CancellationToken cancellationToken = default )
7272 {
7373 var projectFile = Directory . EnumerateFiles ( projectDirectory , "*.csproj" ) . Single ( ) ;
74- _ = await Command . ReadAsync ( dotNetCli , $ " restore { projectFile } ", cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
74+ _ = await Command . ReadAsync ( dotNetCli , $ " restore { projectFile } ", ct : cancellationToken ) . ConfigureAwait ( false ) ;
7575 }
7676}
0 commit comments