VS Code编译运行C#的方法
第一步:新建C#项目文件夹并将其在Visual Studio Code中打开之后,在底下的终端中输入下方指令创建项目的.csproj文件:
dotnet new console
第二步:执行下方指令编译代码:
dotnet restore
第三步:输入下方指令运行项目。
dotnet run
如果需要生成可执行文件,则使用下方指令:
dotnet build -c release
dotnet run -c release
作者:艾孜尔江
本文来自博客园,作者:艾孜尔江,转载请注明原文链接:https://www.cnblogs.com/ezhar/p/16099371.html

浙公网安备 33010602011771号