C
C#4mo 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
mtreit4mo ago
Does dotnet --info output anything?
Damon
Damon4mo ago
Command not found
mtreit
mtreit4mo ago
Is that linux?
Damon
Damon4mo ago
Yeah
mtreit
mtreit4mo 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
Damon4mo ago
That will probably work. Curious why that wasnt the command on the MS help page 🤔
mtreit
mtreit4mo ago
Which page?
Damon
Damon4mo 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
mtreit4mo ago
¯\_(ツ)_/¯ Not sure why that wouldn't work either. But if you are installing it yourself you can probably just use apt
Damon
Damon4mo ago
That's worked now. Thanks for you help
reflectronic
reflectronic4mo 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
jcotton424mo ago
was ~/.dotnet on your PATH?
Damon
Damon4mo ago
Yes, the installer bash script adds it to path
jcotton42
jcotton424mo 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
Damon4mo 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
reflectronic4mo 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
Damon4mo 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
reflectronic4mo ago
well. if you started a new session then it'd be gone
Damon
Damon4mo ago
At that time it was the same session when which failed to find Anyhow, no matter - all is resolved
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4mo ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server
More Posts
✅ https://discord.com/channels/143867839282020352/1212492834393825280i posted my problem in the wrong channel by accident pls forgive me XD this is in code-reviewHow to refactor lots of overloaded methods more smartly?```csharp using System; using System.Collections.Generic; using System.Linq; using System.Text; usinWPF: Bind to each value of a property generated via reflection in ObservableCollectionI have a large list of objects, we'll call the object SpecialData, with ~60 properties on it. I creaHow do i handle an eventBasically i want to do a console write when OnBotDisconnected event is fired (this is from MineSharpC# Model with EF Code FirstHello everyone, I need your knowledge to analyze the following problem. I have a model called Test WPF custom click eventHi, I am wondering if it is possible to create similar event to mouse click, that will be called onlHttpListener implements IDisposable but there is not Dispose() method, why and how can I dispose it?```cs #region Assembly System.Net.HttpListener, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7Random Generator methodcould someone help me with this method? if the list contains a number we should generate a new randoRunning gRPC service inside a docker container on a kubernetes clusterMay just be the same question, on which I get a different error, seen on this image. So, I have a Problems with sharp compress | ZlibException: Bad state (incomplete literal/length treeCode ( error in attachment ) ```cs byte[] buffer = new byte[uploadFile.Size];