使用dnu install安装时找不到包。适用于dnu还原

时间:2016-02-02 12:39:51

标签: .net dnx dnu

我试图dnu install Microsoft.CodeAnalysis.CSharp.Scripting 1.1.1但它失败了 错误:FindPackagesById:Microsoft.CodeAnalysis.CSharp.Scripting   响应状态代码不表示成功:404(未找到)
使用project.json文件执行dnu restore包含其依赖项列表中的相同包可正常工作:

{
  "version": "1.0.0-*",
  "description": "ScriptSharp.ScriptEngine Class Library",
  "frameworks": {
    "dotnet5.4": {
      "dependencies": {
        "Microsoft.CSharp": "4.0.1-beta-23516",
        "System.Collections": "4.0.11-beta-23516",
        "System.Linq": "4.0.1-beta-23516",
        "System.Runtime": "4.0.21-beta-23516",
        "System.Threading": "4.0.11-beta-23516"
      }
    }
  },
  "dependencies": {
    "Microsoft.CodeAnalysis.CSharp.Scripting": "1.1.1"
  }
}

这是使用的Feed列表:
https://www.nuget.org/api/v2/
https://www.myget.org/F/roslyn-nightly/
https://www.myget.org/F/aspnetvnext/api/v2
https://www.myget.org/F/dotnet-corefx/

我做错了什么?

1 个答案:

答案 0 :(得分:0)

安装CoreCLR 1.0运行时后,它工作正常: dnvm install -r coreclr -arch x86 latest -u