Mac OS中的dotnet还原错误

时间:2017-01-23 06:07:34

标签: .net

这是关于“dotnet restore”。我在终端尝试“Dotnet restore”但终端显示此消息:

  

/Users/abc/coreclr/tests/src/JIT/config/threading+thread/project.json”   在第29行第0列:加载JObject时意外的内容结束。   路径'框架['netcoreapp1.1']',第29行,位置0.错误:
  加载JObject时意外结束内容。路径   'frameworks ['netcoreapp1.1']',第29行,第0位。

所以我找到了project.json文件。 这个文件代码:

{
  "dependencies": {
    "Microsoft.NETCore.Platforms": "2.0.0-beta-24919-02",
    "System.Console": "4.4.0-beta-24913-02",
    "System.Numerics.Vectors": "4.4.0-beta-24913-02",
    "System.Runtime": "4.4.0-beta-24913-02",
    "System.Runtime.Extensions": "4.4.0-beta-24913-02",
    "System.Threading": "4.4.0-beta-24913-02",
    "System.Threading.Thread": "4.4.0-beta-24913-02"
  },
  "frameworks": {
    "netcoreapp1.1": {
      "dependencies": {
        "Microsoft.NETCore.App": {
          "type": "platform",
          "version": "1.1.0"
        }
  },
  "runtimes": {
    "win7-x86": {},
    "win7-x64": {},
    "ubuntu.14.04-x64": {},
    "osx.10.10-x64": {},
    "centos.7-x64": {},
    "rhel.7-x64": {},
    "debian.8-x64": {}
  }

就是这样。所以我无法在VS for Mac和“dotnet restore”中构建。 我该怎么办?

0 个答案:

没有答案