@@ -94,14 +94,14 @@ static bool RunMsBuildIfNeeded(Arguments args, string workingDirectory, VersionV
94
94
95
95
if ( string . IsNullOrEmpty ( args . Proj ) ) return false ;
96
96
97
- Logger . WriteInfo ( string . Format ( "Launching build tool {0 } \" {1 }\" {2}" , BuildTool , args . Proj , args . ProjArgs ) ) ;
97
+ Logger . WriteInfo ( $ "Launching build tool { BuildTool } \" { args . Proj } \" { args . ProjArgs } " ) ;
98
98
var results = ProcessHelper . Run (
99
99
Logger . WriteInfo , Logger . WriteError ,
100
- null , BuildTool , string . Format ( "\" {0 }\" {1}" , args . Proj , args . ProjArgs ) , workingDirectory ,
100
+ null , BuildTool , $ "\" { args . Proj } \" { args . ProjArgs } " , workingDirectory ,
101
101
GetEnvironmentalVariables ( variables ) ) ;
102
102
103
103
if ( results != 0 )
104
- throw new WarningException ( string . Format ( "{0 } execution failed, non-zero return code", runningOnMono ? "XBuild" : "MSBuild" ) ) ;
104
+ throw new WarningException ( $ " { ( runningOnMono ? "XBuild" : "MSBuild" ) } execution failed, non-zero return code") ;
105
105
106
106
return true ;
107
107
}
@@ -111,14 +111,14 @@ static bool RunExecCommandIfNeeded(Arguments args, string workingDirectory, Vers
111
111
{
112
112
if ( string . IsNullOrEmpty ( args . Exec ) ) return false ;
113
113
114
- Logger . WriteInfo ( string . Format ( "Launching {0} {1}" , args . Exec , args . ExecArgs ) ) ;
114
+ Logger . WriteInfo ( $ "Launching { args . Exec } { args . ExecArgs } " ) ;
115
115
var results = ProcessHelper . Run (
116
116
Logger . WriteInfo , Logger . WriteError ,
117
117
null , args . Exec , args . ExecArgs , workingDirectory ,
118
118
GetEnvironmentalVariables ( variables ) ) ;
119
119
120
120
if ( results != 0 )
121
- throw new WarningException ( string . Format ( "Execution of {0 } failed, non-zero return code" , args . Exec ) ) ;
121
+ throw new WarningException ( $ "Execution of { args . Exec } failed, non-zero return code") ;
122
122
123
123
return true ;
124
124
}
0 commit comments