@@ -30,11 +30,13 @@ Task("build")
3030 Configuration = configuration ,
3131 NoRestore = true ,
3232 NoIncremental = false ,
33- MSBuildSettings = new DotNetCoreMSBuildSettings ( )
34- . WithProperty ( "Version" , buildVersion . Version )
35- . WithProperty ( "AssemblyVersion" , buildVersion . AssemblyVersion )
36- . WithProperty ( "FileVersion" , buildVersion . FileVersion )
37- . WithProperty ( "ContinuousIntegrationBuild" , BuildSystem . IsLocalBuild ? "false" : "true" )
33+ MSBuildSettings = new DotNetCoreMSBuildSettings
34+ {
35+ Version = buildVersion . Version ,
36+ AssemblyVersion = buildVersion . AssemblyVersion ,
37+ FileVersion = buildVersion . FileVersion ,
38+ ContinuousIntegrationBuild = BuildSystem . IsLocalBuild ,
39+ } ,
3840 } ) ;
3941} ) ;
4042
@@ -68,9 +70,11 @@ Task("pack")
6870 NoRestore = true ,
6971 NoBuild = true ,
7072 OutputDirectory = "./artifact/nuget" ,
71- MSBuildSettings = new DotNetCoreMSBuildSettings ( )
72- . WithProperty ( "Version" , buildVersion . Version )
73- . WithProperty ( "PackageReleaseNotes" , releaseNotes )
73+ MSBuildSettings = new DotNetCoreMSBuildSettings
74+ {
75+ Version = buildVersion . Version ,
76+ PackageReleaseNotes = releaseNotes ,
77+ } ,
7478 } ) ;
7579} ) ;
7680
0 commit comments