在 Windows 上的 Visual Studio 代码编辑器上运行 C# 控制台应用程序

2024-01-01

有没有办法在 VSCode 编辑器中创建(从头开始)并运行简单的 C# 控制台应用程序。 ? 您能否提供我如何做到这一点的分步说明? 我必须包含哪些类型的文件(显然 HelloWolrd.cs 除外)? 我必须执行什么样的命令?


Navigate to the folder you want to create the console app in. In VSCode, use Ctrl+` to open the terminal window or go to View and select Integrated Terminal. Now type the following below:

  1. dotnet new console
  2. dotnet restore
  3. dotnet run
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 Windows 上的 Visual Studio 代码编辑器上运行 C# 控制台应用程序 的相关文章

随机推荐