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.
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.
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.
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
I've resolved this by uninstalling the existing mvc NuGet package I had, and reinstalling, then doing a solution clean build, then rebuild.
According to NuGet Developer danliu "we are working on a fix for this issue, which will be released along with NuGet 2.8."
According to Danliu: One workaround for this issue is to go to update tab, click Update button to Microsoft.Net.Http package first. When it's done, then click the UpdateAll button.
I have been unable to confirm if this works.
https://nuget.codeplex.com/workitem/3651
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With