C
C#9mo 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
mtreit9mo ago
Does dotnet --info output anything?
Damon
DamonOP9mo ago
Command not found
mtreit
mtreit9mo ago
Is that linux?
Damon
DamonOP9mo ago
Yeah
mtreit
mtreit9mo 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
DamonOP9mo ago
That will probably work. Curious why that wasnt the command on the MS help page 🤔
mtreit
mtreit9mo ago
Which page?
Damon
DamonOP9mo 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
mtreit9mo ago
¯\_(ツ)_/¯ Not sure why that wouldn't work either. But if you are installing it yourself you can probably just use apt
Damon
DamonOP9mo ago
That's worked now. Thanks for you help
reflectronic
reflectronic9mo 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
Damon
DamonOP9mo ago
jcotton42
jcotton429mo ago
was ~/.dotnet on your PATH?
Damon
DamonOP9mo ago
Yes, the installer bash script adds it to path
jcotton42
jcotton429mo 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
Damon
DamonOP9mo ago
I didn't check and that session is long since gone, so I can't verify one way or the other Though I wouldve thought which wouldve found the exe in the pwd
reflectronic
reflectronic9mo ago
it does not, it only looks in PATH so, it must not have been in PATH which makes sense, because the dotnet-install script does not add dotnet to PATH. it is not meant to be used as a general-purpose installer
Damon
DamonOP9mo ago
bin_path="$(get_absolute_path "$(combine_paths "$install_root" "$bin_folder_relative_path")")"
if [ "$no_path" = false ]; then
say "Adding to current process PATH: \`$bin_path\`. Note: This change will be visible only when sourcing script."
export PATH="$bin_path":"$PATH"
else
say "Binaries of dotnet can be found in $bin_path"
fi
bin_path="$(get_absolute_path "$(combine_paths "$install_root" "$bin_folder_relative_path")")"
if [ "$no_path" = false ]; then
say "Adding to current process PATH: \`$bin_path\`. Note: This change will be visible only when sourcing script."
export PATH="$bin_path":"$PATH"
else
say "Binaries of dotnet can be found in $bin_path"
fi
Did I misinterpret this part?
reflectronic
reflectronic9mo ago
well. if you started a new session then it'd be gone
Damon
DamonOP9mo ago
At that time it was the same session when which failed to find Anyhow, no matter - all is resolved
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX9mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server