File tree 3 files changed +33
-0
lines changed 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ set target = %1
2
+ set sdkVersion = %2
3
+ set runtimeVersion = %3
4
+ powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Version %sdkVersion% -InstallDir %HELIX_CORRELATION_PAYLOAD% \sdk"
5
+ powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -useb 'https://dot.net/v1/dotnet-install.ps1'))) -Runtime dotnet -Version %runtimeVersion% -InstallDir %HELIX_CORRELATION_PAYLOAD% \sdk"
6
+ set DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
7
+ set DOTNET_ROOT = " $HELIX_CORRELATION_PAYLOAD/sdk"
8
+ set PATH = " $DOTNET_ROOT:$PATH"
9
+ set DOTNET_MULTILEVEL_LOOKUP = 0
10
+ set DOTNET_CLI_HOME = " $HELIX_CORRELATION_PAYLOAD/home"
11
+ %HELIX_CORRELATION_PAYLOAD% \sdk\dotnet vstest %target% --logger:trx
12
+
13
+
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version $2 --no-cdn --install-dir $HELIX_CORRELATION_PAYLOAD /sdk
3
+ curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version $3 --no-cdn --install-dir $HELIX_CORRELATION_PAYLOAD /sdk
4
+ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
5
+
6
+ # Ensures every invocation of dotnet apps uses the same dotnet.exe
7
+ export DOTNET_ROOT=" $HELIX_CORRELATION_PAYLOAD /sdk"
8
+
9
+ # Ensure dotnet comes first on PATH
10
+ export PATH=" $DOTNET_ROOT :$PATH "
11
+
12
+ # Prevent fallback to global .NET locations. This ensures our tests use the shared frameworks we specify and don't rollforward to something else that might be installed on the machine
13
+ export DOTNET_MULTILEVEL_LOOKUP=0
14
+
15
+ # Avoid contaminating userprofiles
16
+ export DOTNET_CLI_HOME=" $HELIX_CORRELATION_PAYLOAD /home"
17
+
18
+ $HELIX_CORRELATION_PAYLOAD /sdk/dotnet vstest $1 --logger:trx
Original file line number Diff line number Diff line change
1
+ set target = %1
2
+ xunit.console.exe %target% -xml testResults.xml
You can’t perform that action at this time.
0 commit comments