VS代码中的调试失败:无法加载项目文件(MSB4025)

时间:2016-12-10 22:07:55

标签: visual-studio visual-studio-code .net-core project.json

我正在尝试在VS Code中调试NETCore项目,但是启动调试器会出现以下错误:

MSBUILD : error MSB4025: The project file could not be loaded. 
Data at the root level is invalid. Line 1, position 1. 

c:\path\to\my\project.json

project.json内容:

{
  "version": "1.0.0-*",
  "buildOptions": {
    "debugType": "portable",
    "emitEntryPoint": true
  },
  "dependencies": {},
  "frameworks": {
    "netcoreapp1.0": {
      "dependencies": {
        "Microsoft.NETCore.App": {
          "type": "platform",
          "version": "1.0.0"
        }
      },
      "imports": "dnxcore50"
    }
  }
}

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

原来不支持project.json格式。有关GitHub的更多信息。