为什么我添加VScode失败了呢??

添加的时候,提示我要用2.0版本,可是究竟要去哪里找这个版本???



在线等,求助!!!!!

求助啊!!!!!!!

你好 这个编译任务因为vscode的升级编译任务系统引起的问题,
https://code.visualstudio.com/docs/editor/tasks#vscode
目前的解决方案是先将原先的tasks.json文件编码修改为如下,同时按住ctrl + shift + b 运行任务,先解决问题。

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "compile",
            "command": "curl",
            "args": ["http://localhost:7456/update-db"],
            "type":"shell",
            // "isShellCommand": true,
            "isBackground": true,
            "group": "build",
            "presentation": {
                // Reveal the output only if unrecognized errors occur.
                "reveal": "always"
            },
        }    
    ]
}

为啥我ctrl + shift + b 运行任务后是这个:Tasks are only available on a workspace folder.

你看下你的项目中有没有这个

有那个文件

  • 保存 之后ctrl + shift + b,
  • 新建个项目试下
  • 升级下vscode

这样算是成功了吗?

嗯 是的

谢谢!!渴死为什么我这是锁住的呢?

这是正常的