You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- When building the .NET product, there's no need to publish Windows PDBs. Any conversion to Windows PDBs will be done during staging, if necessary. -->
Copy file name to clipboardExpand all lines: eng/Build.ps1
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,7 @@ param (
69
69
[string]$officialSkipTests="false",
70
70
[switch]$noVisualStudio,
71
71
[switch][Alias('pb')]$productBuild,
72
+
[switch]$fromVMR,
72
73
[switch]$skipBuild,
73
74
[switch]$compressAllMetadata,
74
75
[switch]$buildnorealsig=$true,
@@ -134,6 +135,7 @@ function Print-Usage() {
134
135
Write-Host" -dontUseGlobalNuGetCache Do not use the global NuGet cache"
135
136
Write-Host" -noVisualStudio Only build fsc and fsi as .NET Core applications. No Visual Studio required. '-configuration', '-verbosity', '-norestore', '-rebuild' are supported."
136
137
Write-Host" -productBuild Build the repository in product-build mode."
138
+
Write-Host" -fromVMR Set when building from within the VMR."
137
139
Write-Host" -skipbuild Skip building product"
138
140
Write-Host" -compressAllMetadata Build product with compressed metadata"
139
141
Write-Host" -buildnorealsig Build product with realsig- (default use realsig+, where necessary)"
@@ -304,6 +306,7 @@ function BuildSolution([string] $solutionName, $packSolution) {
Copy file name to clipboardExpand all lines: eng/build.sh
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ usage()
37
37
echo" --prepareMachine Prepare machine for CI run, clean up processes after build"
38
38
echo" --sourceBuild Build the repository in source-only mode."
39
39
echo" --productBuild Build the repository in product-build mode."
40
+
echo" --fromVMR Set when building from within the VMR"
40
41
echo" --buildnorealsig Build product with realsig- (default use realsig+ where necessary)"
41
42
echo" --tfm Override the default target framework"
42
43
echo""
@@ -75,8 +76,9 @@ skip_build=false
75
76
prepare_machine=false
76
77
source_build=false
77
78
product_build=false
79
+
from_vmr=false
78
80
buildnorealsig=true
79
-
properties=""
81
+
properties=()
80
82
81
83
docker=false
82
84
args=""
@@ -170,6 +172,9 @@ while [[ $# > 0 ]]; do
170
172
--productbuild|--product-build|-pb)
171
173
product_build=true
172
174
;;
175
+
--fromvmr|--from-vmr)
176
+
from_vmr=true
177
+
;;
173
178
--buildnorealsig)
174
179
buildnorealsig=true
175
180
;;
@@ -178,7 +183,7 @@ while [[ $# > 0 ]]; do
178
183
shift
179
184
;;
180
185
/p:*)
181
-
properties="$properties$1"
186
+
properties+=("$1")
182
187
;;
183
188
*)
184
189
echo"Invalid argument: $1"
@@ -290,9 +295,9 @@ function BuildSolution {
290
295
291
296
BuildMessage="Error building tools"
292
297
# TODO: Remove DotNetBuildRepo property when fsharp is on Arcade 10
293
-
local args="publish$repo_root/proto.proj$blrestore$bltools/p:Configuration=Proto/p:DotNetBuildRepo=$product_build/p:DotNetBuild=$product_build/p:DotNetBuildSourceOnly=$source_build$properties"
298
+
local args=("publish""$repo_root/proto.proj""$blrestore""$bltools""/p:Configuration=Proto""/p:DotNetBuildRepo=$product_build""/p:DotNetBuild=$product_build""/p:DotNetBuildSourceOnly=$source_build""/p:DotNetBuildFromVMR=$from_vmr"${properties[@]+"${properties[@]}"})
0 commit comments