summarylogtreecommitdiffstats
path: root/dotnet.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dotnet.sh')
-rw-r--r--dotnet.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/dotnet.sh b/dotnet.sh
new file mode 100644
index 000000000000..fcc0bfd11dd4
--- /dev/null
+++ b/dotnet.sh
@@ -0,0 +1,12 @@
+# Set location for AppHost lookup
+[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet
+
+# Add dotnet tools directory to PATH
+DOTNET_TOOLS_PATH="$HOME/.dotnet/tools"
+case "$PATH" in
+ *"$DOTNET_TOOLS_PATH"* ) true ;;
+ * ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;;
+esac
+
+# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp'
+[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract"