@@ -19,25 +19,27 @@ void Build()
19
19
{
20
20
if ( IsRunningOnUnix ( ) )
21
21
{
22
- XBuild ( "./src/GitVersion.sln" , new XBuildSettings ( )
22
+ XBuild ( "./src/GitVersion.sln" , new XBuildSettings ( )
23
23
. SetConfiguration ( configuration )
24
24
. WithProperty ( "POSIX" , "True" )
25
- . WithProperty ( "GitVersion_NuGetVersion" , nugetVersion )
26
- . WithProperty ( "GitVersion_SemVer" , semVersion )
27
- . SetVerbosity ( Verbosity . Verbose )
28
- ) ;
25
+ . SetVerbosity ( Verbosity . Verbose ) ) ;
29
26
}
30
27
else
31
28
{
32
- MSBuild ( "./src/GitVersion.sln" , new MSBuildSettings ( )
29
+ var msBuildSettings = new MSBuildSettings ( )
33
30
. SetConfiguration ( configuration )
34
31
. SetPlatformTarget ( PlatformTarget . MSIL )
35
32
. WithProperty ( "Windows" , "True" )
36
- . WithProperty ( "GitVersion_NuGetVersion" , nugetVersion )
37
- . WithProperty ( "GitVersion_SemVer" , semVersion )
38
33
. UseToolVersion ( MSBuildToolVersion . VS2015 )
39
34
. SetVerbosity ( Verbosity . Minimal )
40
- . SetNodeReuse ( false ) ) ;
35
+ . SetNodeReuse ( false ) ;
36
+
37
+ if ( BuildSystem . AppVeyor . IsRunningOnAppVeyor ) {
38
+ msBuildSettings = msBuildSettings
39
+ . WithProperty ( "GitVersion_NuGetVersion" , nugetVersion )
40
+ . WithProperty ( "GitVersion_SemVer" , semVersion ) ;
41
+ }
42
+ MSBuild ( "./src/GitVersion.sln" , msBuildSettings ) ;
41
43
}
42
44
}
43
45
0 commit comments