Add .NET environment variables to windows image (#7400)

This commit is contained in:
Dan Friedman
2023-04-16 07:25:30 -05:00
committed by GitHub
parent c44e921e0b
commit e23a588bad

View File

@@ -9,6 +9,8 @@ New-Item -Path C:\Temp -Force -ItemType Directory
# Set environment variables # Set environment variables
Set-SystemVariable -SystemVariable DOTNET_MULTILEVEL_LOOKUP -Value "0" 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" [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor "Tls12"