@@ -30,11 +30,13 @@ Task("build")
30
30
Configuration = configuration ,
31
31
NoRestore = true ,
32
32
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
+ } ,
38
40
} ) ;
39
41
} ) ;
40
42
@@ -70,9 +72,11 @@ Task("pack")
70
72
IncludeSymbols = true ,
71
73
IncludeSource = true ,
72
74
OutputDirectory = "./artifact/nuget" ,
73
- MSBuildSettings = new DotNetCoreMSBuildSettings ( )
74
- . WithProperty ( "Version" , buildVersion . Version )
75
- . WithProperty ( "PackageReleaseNotes" , releaseNotes )
75
+ MSBuildSettings = new DotNetCoreMSBuildSettings
76
+ {
77
+ Version = buildVersion . Version ,
78
+ PackageReleaseNotes = releaseNotes ,
79
+ } ,
76
80
} ) ;
77
81
78
82
DotNetCorePack ( "./src/Ookii.Dialogs/Ookii.Dialogs.csproj" , new DotNetCorePackSettings
@@ -83,9 +87,11 @@ Task("pack")
83
87
IncludeSymbols = false ,
84
88
IncludeSource = false ,
85
89
OutputDirectory = "./artifact/nuget" ,
86
- MSBuildSettings = new DotNetCoreMSBuildSettings ( )
87
- . WithProperty ( "Version" , buildVersion . Version )
88
- . WithProperty ( "PackageReleaseNotes" , releaseNotes )
90
+ MSBuildSettings = new DotNetCoreMSBuildSettings
91
+ {
92
+ Version = buildVersion . Version ,
93
+ PackageReleaseNotes = releaseNotes ,
94
+ } ,
89
95
} ) ;
90
96
} ) ;
91
97
0 commit comments