garethflowers / vscode-portable

Portable version of the Visual Studio Code editor.
https://garethflowers.dev/vscode-portable/
GNU General Public License v2.0
512 stars 71 forks source link

The .NET CLI tools cannot be located #57

Open Wezz19 opened 5 years ago

Wezz19 commented 5 years ago

After installing the C# extension VS Code gives this error message: The .NET CLI tools cannot be located. .NET Core debugging will not be enabled. Make sure .NET CLI tools are installed and are on the path.

There is a setting for C# which disables this warning. "Suppress Dotnet Install Warning" found under "User Settings>Extensions>C# configuration"

But there is something wrong with this portable installation since when I type "dotnet new console" in the terminal I get this error:

dotnet : The term 'dotnet' is not recognized as the name of a cmdlet, function, script
 file, or operable program. Check the spelling of the name, or if a path was included,
 verify that the path is correct and try again.
At line:1 char:1
+ dotnet new console
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (dotnet:String) [], CommandNotFoundExce 
   ption
    + FullyQualifiedErrorId : CommandNotFoundException
brisingraerowing commented 2 years ago

If you're running the SDK off of the same drive, you need to add it to the PATH variable before running. I'm not sure how to do that though.