0

I tried running simple code in my vscode. initially got of "scripts not found internally or externally" after installing the scripts from "choclately" and installing "sriptcsRunner" extension. I'm again facing a problem running my code.

enter image description here

4

1 回答 1

0

对于 VisualStudio Code,您真正需要运行的只是 C# 扩展。

要创建一个新项目,请在工作区中的 VS Code 中打开集成终端并运行

dotnet new console

这将创造你需要的一切。

您可能需要运行.NET Generate Assets for Build and Debug,您可以通过按下ctrl + shift + P并在此处输入上述命令来执行此操作,它应该几乎是自动完成的。

要调试您的程序,您可以按F5

要正常执行,请使用:

dotnet run
于 2021-03-05T20:04:19.187 回答