Asp.Net Core - dnu恢复在不同的机器

时间:2016-05-04 20:46:27

标签: nuget asp.net-core dnu

所以,这是在一台计算机上工作但是当我将我的存储库拉到我的笔记本电脑时,我无法恢复这些包。

当我运行dnu restore --ignore-failed-sources --no-cache时,有几个软件包无法安装:

Unable to locate Dependency CommandLineParser >= 1.9.71
Unable to locate Dependency RabbitMQ.Client >= 3.6.1
Unable to locate Dependency AutoMapper >= 4.2.1
Unable to locate Dependency EntityFramework.MicrosoftSqlServer.Design >= 7.0.0-rc1-final
Unable to locate Dependency System.Threading.Timer >= 4.0.1-beta-23516
Unable to locate Dependency Microsoft.AspNet.Server.IIS >= 1.0.0-beta7
Unable to locate Dependency Microsoft.AspNet.Server.WebListener >= 1.0.0-rc1-final
Unable to locate Dependency Microsoft.AspNet.TestHost >= 1.0.0-rc1-final
Unable to locate Dependency FluentValidation >= 6.2.1
Unable to locate Dependency Faker.Net >= 1.0.3
Unable to locate Dependency Swashbuckle >= 6.0.0-*
Unable to locate Dependency xunit >= 2.1.0
Unable to locate Dependency xunit.runner.dnx >= 2.1.0-rc1-build204
Unable to locate Dependency Microsoft.AspNet.WebApi.Client >= 5.2.3

和其他许多人。

我尝试使用的Feed是:

http://www.nuget.org/api/v2/
http://api.nuget.org/v3/index.json
http://www.myget.org/F/aspnetmaster/api/v3/index.json
http://www.myget.org/F/aspnetmaster/api/v2/

版本:

$ dnu --version
Microsoft .NET Development Utility
 Version:      1.0.0-rc1-16609
 Type:         Clr
 Architecture: x86
 OS Name:      Windows
 OS Version:   6.1
 Runtime Id:   win7-x86

涉及多个项目,但最糟糕的是package.json:

{
  "version": "1.0.0-*",
  "description": "myApp.test Class Library",
  "authors": [ "jcnance" ],
  "tags": [ "" ],
  "projectUrl": "",
  "licenseUrl": "",

  "frameworks": {
    "dnx451": { }
  },
  "dependencies": {
    "Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-rc1-final",
    "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
    "Microsoft.AspNet.TestHost": "1.0.0-rc1-final",
    "david.adapters.glooko": "1.0.0-*",
    "david.mock.glooko": "1.0.0-*",
    "david.core": "1.0.0-*",
    "david.tests": "1.0.0-*",
    "xunit": "2.1.0",
    "xunit.runner.dnx": "2.1.0-rc1-build204",
    "Newtonsoft.Json": "7.0.1",
    "Microsoft.AspNet.WebApi.Client": "5.2.3"
  },
  "commands": {
    "test": "xunit.runner.dnx"
  }
}

1 个答案:

答案 0 :(得分:0)

这解决了我的问题https://stackoverflow.com/a/33405651/2322026

请求通过Fiddler代理,Fiddler未开放。