Install .NET Core SDK in Manjaro Linux

sudo pacman -S dotnet-sdk
sudo pacman -S aspnet-runtime

Then, you’ll need to create /etc/profile.d/dotnet.sh and add the following:

export DOTNET_ROOT=/usr/share/dotnet
export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks
export PATH=${PATH}:${DOTNET_ROOT}
dotnet --list-sdks

To use the extra tools, such as dotnet ef, you will want to add a line to your .bashrc file.

nano ~/.bashrc

And add the following at the end:

export PATH="$PATH:/home/jeremy/.dotnet/tools"
source ~/.bashrc

 

References
https://www.jeremymorgan.com/tutorials/linux/how-to-install-dotnet-manjaro/
https://github.com/dotnet/core/issues/7087