Upgrading MVC from 4.0 to 5.2 - Failed to install package

I am trying to upgrade my project from MVC 4.0 to 5.2. But as soon as I do that, I get an error:

Install-Package : Could not install package 'Microsoft.AspNet.Razor 3.2.3'. You are trying to install this packag
e into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly referen
ces or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Microsoft.AspNet.Mvc -Version 5.2.3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

      

How can I solve this problem? And what does it mean?

+3
asp.net asp.net-mvc asp.net-mvc-3 razor asp.net-mvc-4


source to share


No one has answered this question yet

See similar questions:

119
How to select .NET 4.5.2 as target environment in Visual Studio

or similar:

15
Failed to install Microsoft.AspNet.Razor 3.0.0
3
Can't install "Microsoft.AspNet.Razor 3.2.3" in visual studio 2015 nuget package manager
3
Error installing Mvc Scaffolding package using Package Manager in VS2012
3
Failed to install package "Microsoft.AspNet.Razor 3.2.3" in Visual Studio 2015. Nuget Package Manager
2
Install-Package: Unable to find package 'Microsoft.AspNet.WebApi.Cors'
1
Failed to install package "Microsoft.Owin.Security 2.0.1"
1
Error installing Microsoft.AspNet.MVC Nugut package in window
1
How to set PagedList.Mvc reference in MVC project
1
Failed to install StructureMap.MVC4 on .NET 4, MVC 4, VS 2012
-1
Why can't I install NHibernate framework in my ASP.NET MVC project?



All Articles
Loading...
X
Show
Funny
Dev
Pics