✅ Command Not Found error
I have created console app, I want to run hello word but some reason I am having this error although I have add C# Dev Kit extention , What can be the reason?
34 Replies
Why are you trying to use
scriptcs
?
Just dotnet run
the projectthis isn't the first time i've seen this, so i suspect there's a vscode extension or some other material that shows up when googling that directs people to try this
yes I have already run
dotnet run
in my terminal but did not workedElaborate
"did not worked" is about the equivalent of "me no feel good" in doctor's office
I need to work environment to make practice for C#
Run it from the directory of your
csproj
or do what the error message tells you toI am used to use IntelliJ for IDE
Use Rider, then
you need to run
dotnet run
in the same folder as your csprojUsually it's Brackeys "tutorial" or some other youtuber
I want to change directory but it did not work , what can be the reason ?
you cant change directory to a file
use tab for auto-complete (depends on the terminal)
you can do
code ./
if you're already in the directory that contains the .sln or .csproj in the terminal
that'll start VSCode in the relative directoryI am already in the directory which is Test that contains the .sln or .csproj when I run
dotnet run
still not workingare you sure that you don't have Test/Test?
ahhh I see😢
thank you very much indeed
I have run
it worked but When I click run button at the top right corner VS code
I have still same error message
Welcome to the VS Code experience
at least I am running in the terminal but VS code run button is not working
You probably need to edit some file in
.vscode
directory to tell VSC to use dotnet run
and not scriptcs
Also, I see you moved the .sln
filehow I can do this?
¯\_(ツ)_/¯
yes , is this location right?
The structure, usually, is
not
thank you very much for all explanation
Or, since you just have a single hello world project, ditch the solution altogether
The bare minimum
Also, since you mentioned you're used to IntelliJ IDEs, why not use Rider instead of VSC?
Okay I have just got it , Rider is one of the IDE , thanks for the suggestion
I will take a look
Thank you
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered
The fact that it does require setup that you can fuck up this badly, kinda is VSC fault tbh
If not VSC's, then DevKit's
I'd expect it to set up everything
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View