1
1
@ echo off
2
- REM Disable "!Foo!" expansions because they break the filter syntax
3
- setlocal disableextensions
2
+ REM Need delayed expansion !PATH! so parens don't mess up the parens
3
+ setlocal enableddelayedexpansion
4
4
5
5
REM Use '$' as a variable name prefix to avoid MSBuild variable collisions with these variables
6
6
set $target = %1
@@ -17,7 +17,7 @@ set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
17
17
set DOTNET_MULTILEVEL_LOOKUP = 0
18
18
set DOTNET_CLI_HOME = %HELIX_CORRELATION_PAYLOAD% \home
19
19
20
- set " PATH = %DOTNET_ROOT% ;% PATH% ;%HELIX_CORRELATION_PAYLOAD% \node\bin"
20
+ set PATH = %DOTNET_ROOT% ;! PATH! ;%HELIX_CORRELATION_PAYLOAD% \node\bin
21
21
echo Set path to: %PATH%
22
22
echo " Installing SDK"
23
23
powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Architecture %$arch% -Version %$sdkVersion% -InstallDir %DOTNET_ROOT% "
@@ -34,7 +34,7 @@ if EXIST ".\Microsoft.AspNetCore.App" (
34
34
dotnet nuget list source
35
35
dotnet tool install dotnet-ef --global --version %$efVersion%
36
36
37
- set " PATH = % PATH% ;%DOTNET_CLI_HOME% \.dotnet\tools"
37
+ set PATH = ! PATH! ;%DOTNET_CLI_HOME% \.dotnet\tools
38
38
)
39
39
40
40
echo " Current Directory: %HELIX_WORKITEM_ROOT% "
@@ -66,6 +66,8 @@ if %$quarantined%==True (
66
66
set %$quarantined = true
67
67
)
68
68
69
+ REM Disable "!Foo!" expansions because they break the filter syntax
70
+ setlocal disableextensions
69
71
set NONQUARANTINE_FILTER = " Quarantined!=true"
70
72
set QUARANTINE_FILTER = " Quarantined=true"
71
73
if %$quarantined% == true (
0 commit comments