Failed to install umbraco 7.5.4 via Nuget/Package Manager in Visual Studio 2010
fter opening VS 2010, I created an empty MVC 4 Web app 'UmbracoTest' along with a new solution. View engine is Razor and .Net 4. In Package Manager console, I typed PM>install-package umbracocms and prompted this:
PM> install-package umbracocms
Attempting to resolve dependency 'UmbracoCms.Core (= 7.5.4)'.
Attempting to resolve dependency 'Microsoft.AspNet.Mvc (≥ 5.2.3 && < 6.0.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.2.3 && < 3.3.0)'.
...
...
Installing 'Microsoft.AspNet.Razor 3.2.3'.
Successfully installed 'Microsoft.AspNet.Razor 3.2.3'.
...
...
Removing 'Microsoft.AspNet.Razor 2.0.20710.0' from UmbracoTest.
Successfully removed 'Microsoft.AspNet.Razor 2.0.20710.0' from UmbracoTest.
Adding 'Microsoft.AspNet.Razor 3.2.3' to UmbracoTest.
Uninstalling 'Microsoft.AspNet.Razor 3.2.3'.
Successfully uninstalled 'Microsoft.AspNet.Razor 3.2.3'.
Install failed. Rolling back...
Install-Package : Could not install package 'Microsoft.AspNet.Razor 3.2.3'. You are trying to install this package into a project that targets '.NETFramewo
rk,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework.
For more information,
contact the package author.
At line:1 char:16
+ install-package <<<< umbracocms
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
As the error says: You are trying to install this package into a project that targets '.NETFramework,Version=v4.0'. Umbraco depends on ASP.NET MVC 5 which doesn't work on .NET 4.0. In fact, VS2010 does not support .NET 4.5. Instead you will need Visual Studio 2012 or higher.
There is a free community edition download of Visual Studio available if you're a student, open source developer or individual developer.
If you absolutely MUST then you can use version 7.2.8, which still uses MVC4. But please reconsider and try everything you can to use the latest version so you benefit from all the bug fixes, performance improvements, security enhancements, etc.
Enrico, nothing stops you having multiple versions of Visual Studio installed. If you have to maintain earlier programs that require VS2010 and don't work with any of the newer versions then keep VS2010 as well.
However, I highly recommend installing VS2015 as well.
Failed to install umbraco 7.5.4 via Nuget/Package Manager in Visual Studio 2010
fter opening VS 2010, I created an empty MVC 4 Web app 'UmbracoTest' along with a new solution. View engine is Razor and .Net 4. In Package Manager console, I typed PM>install-package umbracocms and prompted this:
PM> install-package umbracocms Attempting to resolve dependency 'UmbracoCms.Core (= 7.5.4)'. Attempting to resolve dependency 'Microsoft.AspNet.Mvc (≥ 5.2.3 && < 6.0.0)'. Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.2.3 && < 3.3.0)'. ... ... Installing 'Microsoft.AspNet.Razor 3.2.3'. Successfully installed 'Microsoft.AspNet.Razor 3.2.3'. ... ... Removing 'Microsoft.AspNet.Razor 2.0.20710.0' from UmbracoTest. Successfully removed 'Microsoft.AspNet.Razor 2.0.20710.0' from UmbracoTest. Adding 'Microsoft.AspNet.Razor 3.2.3' to UmbracoTest. Uninstalling 'Microsoft.AspNet.Razor 3.2.3'. Successfully uninstalled 'Microsoft.AspNet.Razor 3.2.3'. Install failed. Rolling back... Install-Package : Could not install package 'Microsoft.AspNet.Razor 3.2.3'. You are trying to install this package into a project that targets '.NETFramewo rk,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:16 + install-package <<<< umbracocms + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>
As the error says:
You are trying to install this package into a project that targets '.NETFramework,Version=v4.0'
. Umbraco depends on ASP.NET MVC 5 which doesn't work on .NET 4.0. In fact, VS2010 does not support .NET 4.5. Instead you will need Visual Studio 2012 or higher.There is a free community edition download of Visual Studio available if you're a student, open source developer or individual developer.
Thank you Sebastiaan for your feedback. We will stick to VS2010 as needed. Guess we have to use lower version of Umbraco (4.x or 5?)
Please don't :-(
If you absolutely MUST then you can use version 7.2.8, which still uses MVC4. But please reconsider and try everything you can to use the latest version so you benefit from all the bug fixes, performance improvements, security enhancements, etc.
Enrico, nothing stops you having multiple versions of Visual Studio installed. If you have to maintain earlier programs that require VS2010 and don't work with any of the newer versions then keep VS2010 as well.
However, I highly recommend installing VS2015 as well.
Thank you Nik. Will consider installing VS2015
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.