c# - 如何在微软新的Visual Studio Code中编译c#?

标签 c# visual-studio-code

我已经安装了Microsoft's new code editor "Visual Studio Code的预览版| "。这似乎是个不错的工具!

介绍中提到你可以用它编写c#程序,但是设置文档没有提到如何实际编译c#文件。

您可以在“launch.json”文件中将“mono”定义为一种类型,但这还没有做任何事情。按 F5 会导致:“确保从启动下拉列表中选择一个配置”...

另外,intellisense 不适用于 c#?您如何设置任何包含的框架的路径?

Launch.json:

"configurations": [
        {
            // Name of configuration; appears in the launch configuration drop down menu.
            "name": "Cars.exe",
            // Type of configuration. Possible values: "node", "mono".
            "type": "mono",
            // Workspace relative or absolute path to the program.
            "program": "cars.exe",
        }, 
        {
            "type": "mono",
        }

最佳答案

由于没有其他人说过,在 Visual Studio Code (VSCode) 中编译(构建)C# 应用程序的快捷方式是 SHIFT+CTRL+B

如果您想查看构建错误(因为默认情况下它们不会弹出),快捷方式是 SHIFT+CTRL+M

(我知道这个问题要求的不仅仅是构建快捷方式。但我想回答标题中的问题,而其他答案/评论并未直接回答这个问题。)

关于c# - 如何在微软新的Visual Studio Code中编译c#?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37283489/

相关文章:

c# - 在 ExecuteFunction SP 调用中使用 unicode 参数

c# - 使用 Open XML SDK 2.0 检索每行和每列中的所有单元格值

c# - 编译后dll命名空间被排除

c# - 使用 EWS 托管 API 验证登录凭据

python - 在 Visual Studio Code 中将焦点切换到 Jupyter (IPython) 终端

typescript - vscode 导入 import console = require ("console");自动地

使用 vscode 在 .js 文件上 typescript

c# - 我们如何使用 Visual Studio 2008 发布一个 asp.net 网站?

macos - 在 VSCode 中创建多个终端并运行命令

javascript - vs code IntelliSense 不适用于 webpack 包