mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
Skip first time welcome message in .NET Core
Since .NET Core 3.1.300, there is a new environment variable named `DOTNET_NOLOGO` that specifies whether .NET Core welcome and telemetry messages are displayed on first run. https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet
This commit is contained in:
@@ -99,5 +99,6 @@ done
|
|||||||
# NuGetFallbackFolder at /usr/share/dotnet/sdk/NuGetFallbackFolder is warmed up by smoke test
|
# NuGetFallbackFolder at /usr/share/dotnet/sdk/NuGetFallbackFolder is warmed up by smoke test
|
||||||
# Additional FTE will just copy to ~/.dotnet/NuGet which provides no benefit on a fungible machine
|
# Additional FTE will just copy to ~/.dotnet/NuGet which provides no benefit on a fungible machine
|
||||||
setEtcEnvironmentVariable DOTNET_SKIP_FIRST_TIME_EXPERIENCE 1
|
setEtcEnvironmentVariable DOTNET_SKIP_FIRST_TIME_EXPERIENCE 1
|
||||||
|
setEtcEnvironmentVariable DOTNET_NOLOGO 1
|
||||||
prependEtcEnvironmentPath /home/runner/.dotnet/tools
|
prependEtcEnvironmentPath /home/runner/.dotnet/tools
|
||||||
echo 'export PATH="$PATH:$HOME/.dotnet/tools"' | tee -a /etc/skel/.bashrc
|
echo 'export PATH="$PATH:$HOME/.dotnet/tools"' | tee -a /etc/skel/.bashrc
|
||||||
|
|||||||
Reference in New Issue
Block a user