17 lines
779 B
Shell
Executable file
17 lines
779 B
Shell
Executable file
# Source this before dotnet in a Self whose HOME is read-only:
|
|
# . tools/dotnet-self-env.sh
|
|
# Points HOME, the dotnet CLI home and the NuGet cache at one writable directory
|
|
# under the current directory and turns off the node reuse, shared compilation
|
|
# and build server that outlive the command. Sourced per command; never set
|
|
# HOME in the unit.
|
|
DOTNET_SELF_HOME="${DOTNET_SELF_HOME:-$PWD/.dotnet-home}"
|
|
mkdir -p "$DOTNET_SELF_HOME"
|
|
export HOME="$DOTNET_SELF_HOME"
|
|
export DOTNET_CLI_HOME="$DOTNET_SELF_HOME"
|
|
export NUGET_PACKAGES="$DOTNET_SELF_HOME/.nuget/packages"
|
|
export DOTNET_NOLOGO=1
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
|
export MSBUILDDISABLENODEREUSE=1
|
|
export UseSharedCompilation=false
|
|
export DOTNET_CLI_USE_MSBUILD_SERVER=0
|