-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: dotnet command not found in GitHub Codespace instance #7986
Comments
Hey! Where you able to figure this out? DISCLAIMER: Though I'm working in getting better, I'm currently really an IT noob when it comes to advanced stuff like this, so I exhort anyone who sees this who is more knowledgeable in these topics than me to confirm or correct this answer !! I was also following the instructions from the Exercise - Get the sample application of the Create a build pipeline with Azure Pipelines lesson, and encountered the same error. I solved this problem in my particular scenario by performing the following actions: First, I followed the steps to install .NET on Linux, explained in this Microsoft Documentation post; specifically, I chose the scripted install path. This post tells you to execute the following bash commands in the Codespaces terminal:
The previous series of commands effectively install the latest .NET SDK, after which it's necessary to add
Then, I got an error stating something like the following:
I solved this by executing the following command, as proposed by the user nt86 in this Stackoverflow post:
After this, I was able to execute the instructions that needed the As I commented in the disclaimer above, I'm not an expert an therefore I'm not sure of all the repercussions of this last command, so beware. Also, by the way, I did everything I mentioned in the desktop version of VS Code (on Windows 10), rather than directly on the browser. This is the first time I try and help in a forum, so I'd appreciate any sort of feedback! :) |
@mplac555's solution worked for me! However, to get the rest of the steps to work, I had to specify version 6.0 instead of the latest version.
|
Thanks @mplac555, your solution works great. But now, when I try to open the web project on port 5000 It shows "Page not found" |
During exercise step "Build and run the web app" in Exercise - Get the sample application (https://learn.microsoft.com/en-us/training/modules/create-a-build-pipeline/) while running dotnet build --configuration Release receiving error "command not found".
The text was updated successfully, but these errors were encountered: