在终止清除所有nuget缓存,dnx缓存和使用beta通道更新cli的过程之后,我终于设法获得了使用dotnet还原下载项目的依赖项.
但是使用下面的project.json,我收到一个错误;
warn : Detected package downgrade: Microsoft.Dnx.Compilation.CSharp.Abstractions from 1.0.0-rc2-16553 to 1.0.0-rc2-16552
我不知道这是什么意思,还是如何解决这个问题.事情仍然下载,但这关系到我.
我正在使用以下内容:
DOTNET / CLI
.NET Command Line Tools (1.0.0-beta-001540) Product Information: Version: 1.0.0-beta-001540 Commit Sha: 6aeed1f52d Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows Runtime Id: win10-x64
dnvm列表
Active Version Runtime Architecture OperatingSystem Alias ------ ------- ------- ------------ --------------- ----- 1.0.0-rc1-update1 clr x64 win 1.0.0-rc1-update1 clr x86 win 1.0.0-rc1-update1 coreclr x64 win 1.0.0-rc1-update1 coreclr x86 win 1.0.0-rc2-16551 clr x86 win * 1.0.0-rc2-16551 coreclr x64 win default 1.0.0-rc2-16551 coreclr x86 win
nuget.config
<packageSources> <add key="aspnet-core" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" /> <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" /> <add key="nuget.org" value="https://www.nuget.org/api/v2/" /> </packageSources>
project.json
{ "webroot": "wwwroot","version": "1.0.0-*","dependencies": { "Microsoft.NETCore.Platforms": "1.0.1-*","Microsoft.AspNetCore.Diagnostics": "1.0.0-*","Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*","Microsoft.AspNetCore.Mvc": "1.0.0-*","Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.0-*","Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*","Microsoft.AspNetCore.StaticFiles": "1.0.0-*","Microsoft.Extensions.Configuration.Json": "1.0.0-*","Microsoft.Extensions.Logging.Console": "1.0.0-*","Microsoft.AspNetCore.Identity": "1.0.0-*",},"frameworks": { "dnx451": { "dependencies": { "Microsoft.AspNetCore.Mvc.Dnx": "1.0.0-*" } },"net451": { },"dnxcore50": { "imports": "portable-net451+win7+win8","dependencies": { "NETStandard.Library": "1.0.0-*" } } },"publishExclude": [ "node_modules","bower_components","**.xproj","**.user","**.vspscc" ],"exclude": [ "wwwroot","node_modules","bower_components" ] }