Skip to content

Commit 95eaa56

Browse files
committed
Build.ps1: renamed -VsDebug to -StartVsmon
1 parent 6004feb commit 95eaa56

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/PostSharp.Engineering.BuildTools/Resources/Build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[CmdletBinding(PositionalBinding = $false)]
55
param(
66
[switch]$Interactive, # Opens an interactive PowerShell session
7-
[switch]$VsDebug, # Enable the remote debugger.
7+
[switch]$StartVsmon, # Enable the remote debugger.
88
[Parameter(ValueFromRemainingArguments)]
99
[string[]]$BuildArgs # Arguments passed to `Build.ps1` within the container.
1010
)
@@ -15,7 +15,7 @@ $EngPath = '<ENG_PATH>'
1515
$ProductName = '<PRODUCT_NAME>'
1616
####
1717

18-
if ( $VsDebug )
18+
if ( $StartVsmon )
1919
{
2020
$vsmonport = 4024
2121
Write-Host "Starting Visual Studio Remote Debugger, listening at port $vsmonport." -ForegroundColor Cyan
@@ -47,7 +47,7 @@ if ( -not $Interactive -or $BuildArgs )
4747
# Run the project.
4848
& dotnet run --project "$PSScriptRoot\$EngPath\src\Build$ProductName.csproj" -- $BuildArgs
4949

50-
if ($VsDebug)
50+
if ($StartVsmon)
5151
{
5252
Write-Host ""
5353
Write-Host "Killing vsmon.exe."

src/PostSharp.Engineering.BuildTools/Resources/DockerBuild.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param(
1212
[string]$ImageName, # Image name (defaults to a name based on the directory).
1313
[string]$BuildAgentPath = 'C:\BuildAgent',
1414
[switch]$LoadEnvFromKeyVault, # Forces loading environment variables form the key vault.
15-
[switch]$VsDebug, # Enable the remote debugger.
15+
[switch]$StartVsmon, # Enable the remote debugger.
1616
[Parameter(ValueFromRemainingArguments)]
1717
[string[]]$BuildArgs # Arguments passed to `Build.ps1` within the container.
1818
)
@@ -187,7 +187,7 @@ if (-not $NoNuGetCache)
187187
}
188188

189189
# Mount VS Remote Debugger
190-
if ($VsDebug)
190+
if ($StartVsmon)
191191
{
192192
if (-not $env:DevEnvDir)
193193
{
@@ -277,9 +277,9 @@ if (-not $BuildImage)
277277
Write-Host "Building the product in the container." -ForegroundColor Green
278278

279279
# Prepare Build.ps1 arguments
280-
if ($VsDebug)
280+
if ($StartVsmon)
281281
{
282-
$BuildArgs = @("-VsDebug") + $BuildArgs
282+
$BuildArgs = @("-StartVsmon") + $BuildArgs
283283
}
284284

285285
if ($Interactive)

0 commit comments

Comments
 (0)