Setup:
Windows 7 64 bit
Visual Studio Code, version 1.30.0
Dotnet version: 2.2.101
I am at the beginning of trying to learn how to program with C# and I have hit a snag.
I am attempting to follow the tutorial https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code and I am not getting past the start of it.
The only wrinkle I can think of is that I have installed Visual Studio on my D: drive. I have checked my environmental variables and I see that if I go into my system variables under the path variables I see C:\program files\dotnet.
Also if I am in the interactive terminal in Visual Studio I can go to the folder location of the dotnet.exe, type in the terminal >dotnet --version and a dotnet version shows on my terminal.
Do I need to muck with my environment variables or move my dotnet.exe file to the D drive also to get this puppy goin?
In System variables, select path and edit. After semicolon, write "C:\Program Files\dotnet"
you need to download and install .NET Core SDK
https://dotnet.microsoft.com/download
As the other answers mention, I needed to first install .NET
.
But after install and restart, the problem persisted for me.
The final fix for me was to click the "Kill Terminal" button and then open a new one. Apparently the terminal session can survive a restart.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With