Skip to content

Instantly share code, notes, and snippets.

@waynebloss
Last active July 17, 2022 10:50
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save waynebloss/55aa06b13a3f647c45b57caa31397089 to your computer and use it in GitHub Desktop.
Save waynebloss/55aa06b13a3f647c45b57caa31397089 to your computer and use it in GitHub Desktop.
Setup .NET Core on Manjaro Linux

Manjaro DOTNET setup

  1. Install dotnet-sdk with the package manager.

  2. Create a file /etc/profile.d/dotnet.sh with contents:

export DOTNET_ROOT=/opt/dotnet
export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
export PATH=${PATH}:${DOTNET_ROOT}

(See this OmniSharp issue.)

  1. In ~/.bashrc put:
# DOTNET - Required
export PATH="$PATH:/home/YOUR_USER_NAME/.dotnet/tools"
# DOTNET - Optional
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export ASPNETCORE_ENVIRONMENT=Development

You should REBOOT / RE-LOGIN here or at least after step 2, if you want VSCode/OmniSharp to work properly.

  1. Run some other setup commands (optional):
dotnet tool install --global dotnet-dev-certs
dotnet tool install --global dotnet-watch
dotnet tool install --global dotnet-ef
  1. TODO: Figure out how to configure dev-certs on Manjaro. I haven't used them much.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment