File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/PostSharp.Engineering.BuildTools/Resources Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44[CmdletBinding (PositionalBinding = $false )]
55param (
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."
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments