mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Add .NET environment variables to windows image (#7400)
This commit is contained in:
@@ -9,6 +9,8 @@ New-Item -Path C:\Temp -Force -ItemType Directory
|
||||
|
||||
# Set environment variables
|
||||
Set-SystemVariable -SystemVariable DOTNET_MULTILEVEL_LOOKUP -Value "0"
|
||||
Set-SystemVariable -SystemVariable DOTNET_NOLOGO -Value "1"
|
||||
Set-SystemVariable -SystemVariable DOTNET_SKIP_FIRST_TIME_EXPERIENCE -Value "1"
|
||||
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor "Tls12"
|
||||
|
||||
@@ -141,4 +143,4 @@ InstallAllValidSdks
|
||||
RunPostInstallationSteps
|
||||
InstallTools
|
||||
|
||||
Invoke-PesterTests -TestFile "DotnetSDK"
|
||||
Invoke-PesterTests -TestFile "DotnetSDK"
|
||||
|
||||
Reference in New Issue
Block a user