From e23a588bad7087545dbd7dd1754f9012c185cb53 Mon Sep 17 00:00:00 2001 From: Dan Friedman Date: Sun, 16 Apr 2023 07:25:30 -0500 Subject: [PATCH] Add .NET environment variables to windows image (#7400) --- images/win/scripts/Installers/Install-DotnetSDK.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-DotnetSDK.ps1 b/images/win/scripts/Installers/Install-DotnetSDK.ps1 index 2fde13de..6b0f650a 100644 --- a/images/win/scripts/Installers/Install-DotnetSDK.ps1 +++ b/images/win/scripts/Installers/Install-DotnetSDK.ps1 @@ -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" \ No newline at end of file +Invoke-PesterTests -TestFile "DotnetSDK"