@@ -43,7 +43,7 @@ param (
43
43
[switch ]$prepareMachine ,
44
44
[switch ]$useGlobalNuGetCache = $true ,
45
45
[switch ]$warnAsError = $false ,
46
- [switch ]$sourceBuild = $false ,
46
+ [switch ][ Alias ( ' pb ' )] $productBuild = $false ,
47
47
[switch ]$oop64bit = $true ,
48
48
[switch ]$lspEditor = $false ,
49
49
[string ]$solution = " Roslyn.sln" ,
@@ -112,7 +112,7 @@ function Print-Usage() {
112
112
Write-Host " -prepareMachine Prepare machine for CI run, clean up processes after build"
113
113
Write-Host " -useGlobalNuGetCache Use global NuGet cache."
114
114
Write-Host " -warnAsError Treat all warnings as errors"
115
- Write-Host " -sourceBuild Simulate building source -build"
115
+ Write-Host " -productBuild Build the repository in product -build mode "
116
116
Write-Host " -solution Solution to build (default is Roslyn.sln)"
117
117
Write-Host " "
118
118
Write-Host " Official build settings:"
@@ -210,7 +210,7 @@ function Process-Arguments() {
210
210
$script :restore = $true
211
211
}
212
212
213
- if ($sourceBuild ) {
213
+ if ($productBuild ) {
214
214
$script :msbuildEngine = " dotnet"
215
215
}
216
216
@@ -260,9 +260,6 @@ function BuildSolution() {
260
260
# Workaround for some machines in the AzDO pool not allowing long paths
261
261
$ibcDir = $RepoRoot
262
262
263
- # Set DotNetBuildSourceOnly to 'true' if we're simulating building for source-build.
264
- $buildFromSource = if ($sourceBuild ) { " /p:DotNetBuildSourceOnly=true" } else { " " }
265
-
266
263
$generateDocumentationFile = if ($skipDocumentation ) { " /p:GenerateDocumentationFile=false" } else { " " }
267
264
$roslynUseHardLinks = if ($ci ) { " /p:ROSLYNUSEHARDLINKS=true" } else { " " }
268
265
@@ -287,9 +284,9 @@ function BuildSolution() {
287
284
/ p:IbcOptimizationDataDir= $ibcDir `
288
285
/ p:VisualStudioIbcDrop= $ibcDropName `
289
286
/ p:VisualStudioDropAccessToken= $officialVisualStudioDropAccessToken `
287
+ / p:DotNetBuildRepo= $productBuild `
290
288
$suppressExtensionDeployment `
291
289
$msbuildWarnAsError `
292
- $buildFromSource `
293
290
$generateDocumentationFile `
294
291
$roslynUseHardLinks `
295
292
@properties
0 commit comments