File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 4747 timeoutInMinutes : 90
4848
4949 steps :
50-
5150 - task : UseDotNet@2
5251 inputs :
5352 useGlobalJson : true
5857 - script : .\build.cmd EnableSkipStrongNames
5958 displayName : Windows Build - EnableSkipStrongNames
6059
61- - script : .\build.cmd Build /p:BuildPortable=true /p:Desktop=false
60+ - script : .\build.cmd Build /p:BuildPortable=true
6261 displayName : Windows Build
6362
6463 - task : CodeQL3000Finalize@0
Original file line number Diff line number Diff line change 6565
6666 - script : .\build.cmd EnableSkipStrongNames
6767 displayName : Enable SkipStrongNames
68- - script : .\build.cmd $(_BuildTarget) /p:Desktop=false /p: BuildPortable=true ^
68+ - script : .\build.cmd $(_BuildTarget) /p:BuildPortable=true ^
6969 /binaryLogger:artifacts/msbuild.binlog /p:Configuration=$(_Configuration) /p:StyleCopEnabled=$(_StyleCopEnabled) ^
7070 /fileLoggerParameters:LogFile=artifacts/msbuild.log;Summary;Verbosity=minimal
7171 displayName : Build
Original file line number Diff line number Diff line change @@ -38,15 +38,18 @@ if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
3838 goto BuildFail
3939)
4040
41+ REM Are we running in a local dev environment (not on CI)?
42+ if DEFINED CI (set Desktop=false) else if DEFINED TEAMCITY_VERSION (set Desktop=false) else (set Desktop=true)
43+
4144if " %1 " == " " goto BuildDefaults
4245
43- %MSBuild% Runtime.msbuild /m /nr:false /p:Platform=" Any CPU" /p:Desktop=true /v:M ^
46+ %MSBuild% Runtime.msbuild /m /nr:false /p:Platform=" Any CPU" /p:Desktop=%Desktop% /v:M ^
4447 /fl /fileLoggerParameters:LogFile=bin\msbuild.log;Verbosity=Normal /consoleLoggerParameters:Summary /t:%*
4548if %ERRORLEVEL% neq 0 goto BuildFail
4649goto BuildSuccess
4750
4851:BuildDefaults
49- %MSBuild% Runtime.msbuild /m /nr:false /p:Platform=" Any CPU" /p:Desktop=true /v:M ^
52+ %MSBuild% Runtime.msbuild /m /nr:false /p:Platform=" Any CPU" /p:Desktop=%Desktop% /v:M ^
5053 /fl /fileLoggerParameters:LogFile=bin\msbuild.log;Verbosity=Normal /consoleLoggerParameters:Summary
5154if %ERRORLEVEL% neq 0 goto BuildFail
5255goto BuildSuccess
You can’t perform that action at this time.
0 commit comments