Skip to content

Commit baed380

Browse files
authored
Add -solution option to build.ps1 (#77698)
1 parent 90954e6 commit baed380

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eng/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ param (
4646
[switch]$sourceBuild = $false,
4747
[switch]$oop64bit = $true,
4848
[switch]$lspEditor = $false,
49+
[string]$solution = "Roslyn.sln",
4950

5051
# official build settings
5152
[string]$officialBuildId = "",
@@ -112,6 +113,7 @@ function Print-Usage() {
112113
Write-Host " -useGlobalNuGetCache Use global NuGet cache."
113114
Write-Host " -warnAsError Treat all warnings as errors"
114115
Write-Host " -sourceBuild Simulate building source-build"
116+
Write-Host " -solution Solution to build (default is Roslyn.sln)"
115117
Write-Host ""
116118
Write-Host "Official build settings:"
117119
Write-Host " -officialBuildId An official build id, e.g. 20190102.3"
@@ -230,8 +232,6 @@ function RestoreInternalTooling() {
230232
}
231233

232234
function BuildSolution() {
233-
$solution = "Roslyn.sln"
234-
235235
Write-Host "$($solution):"
236236

237237
$bl = ""

eng/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ usage()
3838
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
3939
echo " --warnAsError Treat all warnings as errors"
4040
echo " --sourceBuild Simulate building for source-build"
41-
echo " --solution Soluton to build (Default is Compilers.slnf)"
41+
echo " --solution Solution to build (default is Compilers.slnf)"
4242
echo ""
4343
echo "Command line arguments starting with '/p:' are passed through to MSBuild."
4444
}

0 commit comments

Comments
 (0)