Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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