【问题标题】:Where is my 'build' button up on my vscode?我的 vscode 上的“构建”按钮在哪里?
【发布时间】:2021-11-05 18:05:11
【问题描述】:

尝试在我的应用程序中创建一个新的 .keystore,我意识到我的 vscode 的构建按钮不再存在,类似的事情发生在其他人这里,如果是这样,你是如何设法生成一个 .keystore 的?

我的 vscode 上只有“文件编辑选择视图运行终端帮助”。 Go 和 Run 之间的构建在哪里?

【问题讨论】:

    标签: visual-studio-code vscode-settings vscode-tasks


    【解决方案1】:

    不确定你的构建按钮是如何消失的,但通常在 vscode 中,要构建你的代码,你需要在 .vscode\tasks.json 中为你想要构建的代码类型定义一个构建任务,例如构建.net 核心:

    {
        // See https://go.microsoft.com/fwlink/?LinkId=733558
        // for the documentation about the tasks.json format
        "version": "2.0.0",
        "tasks": [
            {
                "label": "build",
                "command": "dotnet",
                "type": "shell",
                "args": [
                    "build",
                    // Ask dotnet build to generate full paths for file names.
                    "/property:GenerateFullPaths=true",
                    // Do not generate summary otherwise it leads to duplicate errors in Problems panel
                    "/consoleloggerparameters:NoSummary"
                ],
                "group": "build",
                "presentation": {
                    "reveal": "silent"
                },
                "problemMatcher": "$msCompile"
            }
        ]
    }
    

    按 Ctrl+Shift+B 或从全局终端菜单运行运行构建任务

    https://code.visualstudio.com/docs/editor/tasks

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-04
      • 2022-07-07
      • 2023-02-21
      • 1970-01-01
      • 2015-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多