Sample Header Ad - 728x90

Configure .bashrc file to use .NET 6.0 SDK in Linux

1 vote
1 answer
1873 views
I'm installing C# and dotnet 6.0 SDK in the Linux lubuntu 22.04 version. Following recommendations from Microsoft documentation to install manually such as: mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-6.0.400-linux-x64.tar.gz -C $HOME/dotnet export DOTNET_ROOT=$HOME/dotnet export PATH=$PATH:$HOME/dotnet The above script dotnet runs only in the session opened, it means if opened another terminal session, should run the same script again to use dotnet. The same documentation recommends including the following script in the ~/.bashrc file: export PATH=$PATH:$HOME/dotnet export DOTNET_ROOT=$HOME/dotnet But it isn't working anyway. Previously I already used JAVA SDK at the same ~/.bashrc file, where I had a variable named PATH. I didn't find anything that explains to me whether this variable could subscribe another, how I wasn't using Java anymore, I deleted the lines that had Java variables. Although, it wasn't working. I found a similar issue here , but I'm already using the given solution. The last attempt was to put quotation marks in the variable values, but nothing. Has anyone already had a similar issue?
Asked by Roge (11 rep)
Aug 16, 2022, 06:16 PM
Last activity: Aug 9, 2025, 06:10 AM