升级到5.0.0 Microsoft.AspNet.Mvc通过的NuGet失败

编程入门 行业动态 更新时间:2024-10-10 17:29:41
本文介绍了升级到5.0.0 Microsoft.AspNet.Mvc通过的NuGet失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

Using NuGet, when upgrading to the latest version of ASP 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.

下面是与更新步骤链接:www.asp/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: www.asp/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失败

本文发布于:2023-11-13 11:12:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584205.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:升级到   Microsoft   NuGet   Mvc   AspNet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!