C
C#7mo ago
Damon

✅ Dotnet SDK install problems

I used the install script from MS, and followed the troubleshooting steps given in the dotnet-vsc gh repo. I am still getting no output from which dotnet, but you can clearly see an exe dotnet in ~/.dotnet. Am I missing something?
No description
22 Replies
mtreit
mtreit7mo ago
Does dotnet --info output anything?
Damon
Damon7mo ago
Command not found
mtreit
mtreit7mo ago
Is that linux?
Damon
Damon7mo ago
Yeah
mtreit
mtreit7mo ago
I just did this on Ubuntu:
sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0
sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0
And it worked fine for me. I mainly use Windows however.
Damon
Damon7mo ago
That will probably work. Curious why that wasnt the command on the MS help page 🤔
mtreit
mtreit7mo ago
Which page?
Damon
Damon7mo ago
Install .NET on Linux without using a package manager - .NET
Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually extract the binaries.
mtreit
mtreit7mo ago
¯\_(ツ)_/¯ Not sure why that wouldn't work either. But if you are installing it yourself you can probably just use apt
Damon
Damon7mo ago
That's worked now. Thanks for you help
reflectronic
reflectronic7mo ago
because you are on the page named "install .NET on linux without using a package manager" so the method which installs .NET using a package manager is not listed
jcotton42
jcotton427mo ago
was ~/.dotnet on your PATH?
Damon
Damon7mo ago
Yes, the installer bash script adds it to path
jcotton42
jcotton427mo ago
that's not what I asked meant was it in $PATH in your shell's session? b/c that's all the matters, if you didn't restart your shell or the script did something wrong it wouldn't have been on PATH
Want results from more Discord servers?
Add your server