1
我想我的手在asp.net 5上。我使用visual studio 2015附帶的模板創建了一個asp.net5 mvc應用程序。 但是dnu還原在src文件夾上不起作用。Dnu恢復:無法找到EntityFramework.Commands> = 7.0.0-beta7
Nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<activePackageSource>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</activePackageSource>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources>
<add key="nuget.org" value="true" />
<add key="nuget.org" value="true" />
</disabledPackageSources>
</configuration>
這裏是我做了什麼
C:\Users\sam\Documents\Visual Studio 2015\Projects\WebApplication\src\WebApplication> dnvm list
Active Version Runtime Architecture Location Alias
------ ------- ------- ------------ -------- -----
1.0.0-beta5 clr x64 C:\Users\sam\.dnx\runtimes
1.0.0-beta5 clr x86 C:\Users\sam\.dnx\runtimes
1.0.0-beta5 coreclr x64 C:\Users\sam\.dnx\runtimes
1.0.0-beta5 coreclr x86 C:\Users\sam\.dnx\runtimes
1.0.0-beta6 clr x86 C:\Users\sam\.dnx\runtimes
1.0.0-beta6 coreclr x64 C:\Users\sam\.dnx\runtimes
* 1.0.0-beta7 clr x86 C:\Users\sam\.dnx\runtimes default
1.0.0-beta8-15530 clr x86 C:\Users\sam\.dnx\runtimes
1.0.0-beta8-15548 clr x86 C:\Users\sam\.dnx\runtimes
1.0.0-beta8-15548 coreclr x86 C:\Users\sam\.dnx\runtimes
C:\Users\sam\Documents\Visual Studio 2015\Projects\WebApplication\src\WebApplication> dnu restore
Microsoft .NET Development Utility CLR-x86-1.0.0-beta7-15532
Restoring packages for C:\Users\sam\Documents\Visual Studio 2015\Projects\WebApplication\src\WebApplication\project.json
Unable to locate EntityFramework.Commands >= 7.0.0-beta7
Unable to locate Microsoft.Framework.Configuration.UserSecrets >= 1.0.0-beta7
Unable to locate Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0.0-beta7
Writing lock file C:\Users\sam\Documents\Visual Studio 2015\Projects\WebApplication\src\WebApplication\project.lock.json
Restore complete, 1698ms elapsed
Errors in C:\Users\sam\Documents\Visual Studio 2015\Projects\WebApplication\src\WebApplication\project.json
Unable to locate EntityFramework.Commands >= 7.0.0-beta7
Unable to locate Microsoft.Framework.Configuration.UserSecrets >= 1.0.0-beta7
Unable to locate Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0.0-beta7
你真的救了我的一天! –
這是哪裏添加的?在mvc6中沒有web.config文件... – Scottingham
項目根目錄中的Nuget.config –