@@ -14,21 +14,25 @@ public override void Setup(BuildContext context)
14
14
15
15
context . Credentials = Credentials . GetCredentials ( context ) ;
16
16
17
- SetMsBuildSettingsVersion ( context . MsBuildSettings , context . Version ! ) ;
17
+ SetMsBuildSettingsVersion ( context ) ;
18
18
19
19
context . StartGroup ( "Build Setup" ) ;
20
20
LogBuildInformation ( context ) ;
21
21
context . Information ( "Configuration: {0}" , context . MsBuildConfiguration ) ;
22
22
context . EndGroup ( ) ;
23
23
}
24
24
25
- private static void SetMsBuildSettingsVersion ( DotNetCoreMSBuildSettings msBuildSettings , BuildVersion version )
25
+ private static void SetMsBuildSettingsVersion ( BuildContext context )
26
26
{
27
- msBuildSettings . WithProperty ( "Version" , version . SemVersion ) ;
28
- msBuildSettings . WithProperty ( "AssemblyVersion" , version . Version ) ;
29
- msBuildSettings . WithProperty ( "PackageVersion" , version . NugetVersion ) ;
30
- msBuildSettings . WithProperty ( "FileVersion" , version . Version ) ;
31
- msBuildSettings . WithProperty ( "InformationalVersion" , version . GitVersion . InformationalVersion ) ;
27
+ var msBuildSettings = context . MsBuildSettings ;
28
+ var version = context . Version ! ;
29
+
30
+ msBuildSettings . SetVersion ( version . SemVersion ) ;
31
+ msBuildSettings . SetAssemblyVersion ( version . Version ) ;
32
+ msBuildSettings . SetPackageVersion ( version . NugetVersion ) ;
33
+ msBuildSettings . SetFileVersion ( version . Version ) ;
34
+ msBuildSettings . SetInformationalVersion ( version . GitVersion . InformationalVersion ) ;
35
+ msBuildSettings . SetContinuousIntegrationBuild ( ! context . IsLocalBuild ) ;
32
36
msBuildSettings . WithProperty ( "RepositoryBranch" , version . GitVersion . BranchName ) ;
33
37
msBuildSettings . WithProperty ( "RepositoryCommit" , version . GitVersion . Sha ) ;
34
38
msBuildSettings . WithProperty ( "NoPackageAnalysis" , "true" ) ;
0 commit comments