@@ -32,7 +32,7 @@ public class MsBuildRule : IBuildRule<AutobuildOptionsShared>
3232 /// <summary>
3333 /// A list of solutions or projects which failed to build.
3434 /// </summary>
35- public readonly List < IProjectOrSolution > FailedProjectsOrSolutions = new ( ) ;
35+ public List < IProjectOrSolution > FailedProjectsOrSolutions { get ; } = [ ] ;
3636
3737 public BuildScript Analyse ( IAutobuilder < AutobuildOptionsShared > builder , bool auto )
3838 {
@@ -60,7 +60,7 @@ public BuildScript Analyse(IAutobuilder<AutobuildOptionsShared> builder, bool au
6060 // Use `nuget.exe` from source code repo, if present, otherwise first attempt with global
6161 // `nuget` command, and if that fails, attempt to download `nuget.exe` from nuget.org
6262 var nuget = builder . GetFilename ( "nuget.exe" ) . Select ( t => t . Item1 ) . FirstOrDefault ( ) ?? "nuget" ;
63- var nugetDownloadPath = builder . Actions . PathCombine ( FileUtils . GetTemporaryWorkingDirectory ( builder . Actions . GetEnvironmentVariable , builder . Options . Language . UpperCaseName , out var _ ) , ".nuget" , "nuget.exe" ) ;
63+ var nugetDownloadPath = builder . Actions . PathCombine ( FileUtils . GetTemporaryWorkingDirectory ( builder . Actions . GetEnvironmentVariable , builder . Options . Language . UpperCaseName , out _ ) , ".nuget" , "nuget.exe" ) ;
6464 var nugetDownloaded = false ;
6565
6666 var ret = BuildScript . Success ;
@@ -126,7 +126,7 @@ BuildScript GetNugetRestoreScript() =>
126126 var platform = projectOrSolution is ISolution s1 ? s1 . DefaultPlatformName : null ;
127127 var configuration = projectOrSolution is ISolution s2 ? s2 . DefaultConfigurationName : null ;
128128
129- command . Argument ( "/t:" + target ) ;
129+ command . Argument ( $ "/t:{ target } " ) ;
130130 if ( platform is not null )
131131 command . Argument ( $ "/p:Platform=\" { platform } \" ") ;
132132 if ( configuration is not null )
0 commit comments