升级到5.0.0 Microsoft.AspNet.Mvc通过的NuGet失败 [英] Upgrading to Microsoft.AspNet.Mvc 5.0.0 via NuGet fails

查看:1839
本文介绍了升级到5.0.0 Microsoft.AspNet.Mvc通过的NuGet失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用的NuGet,升级到5.0.0 ASP.net我得到以下的NuGet响应的最新版本时:

Using NuGet, when upgrading to the latest version of ASP.net 5.0.0 I get the following NuGet response:

Attempting to resolve dependency 'Microsoft.AspNet.WebPages (= 3.0.0)'.
Attempting to resolve dependency 'Microsoft.Web.Infrastructure (= 1.0.0.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (= 3.0.0)'.
Installing 'Microsoft.AspNet.Mvc 5.0.0'.
Successfully installed 'Microsoft.AspNet.Mvc 5.0.0'.
Updating 'Microsoft.AspNet.Mvc' from version '4.0.30506.0' to '5.0.0' in project 'HotridesMvc'.
Install failed. Rolling back...
Updating 'Microsoft.AspNet.Mvc 4.0.30506.0' to 'Microsoft.AspNet.Mvc 5.0.0' failed. Unable to find a version of 'AspNetMvc' that is compatible with 'Microsoft.AspNet.Mvc 5.0.0'.

有没有人见过这个?我已经在老包配置嗤之以鼻,并没有看到任何明显不妥。

Has anyone seen this? I've had a sniff around the old package configuration and don't see anything obviously amiss.

有一些其他的相关ASPNET更新已工作,即网页的网页,但我现在留下了一个破碎的web应用程序,显示死亡的黄色画面抱怨DLL的问题。

There were a number of other aspnet related updates which have worked, i.e. web-pages, but I'm now left with a broken web-app which shows the yellow screen of death complaining about dll issues.

推荐答案

这里的一个关键问题是从UI更新的命令行的NuGet不能及的。像尼古拉斯已发布和正在研究它的NuGet团队意识到这个问题。

A key thing here is to update nuget from the command line and not from the UI. The Nuget team is aware of the issue like Nicholas has posted and are looking into it.

下面是与更新步骤链接:<一个href=\"http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2\" rel=\"nofollow\">http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

Here is a link with the update steps: http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

这篇关于升级到5.0.0 Microsoft.AspNet.Mvc通过的NuGet失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆