Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Enrico Magboo 7 posts 127 karma points
    Nov 28, 2016 @ 06:50
    Enrico Magboo
    0

    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>

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Nov 28, 2016 @ 07:58
    Sebastiaan Janssen
    100

    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.

  • Enrico Magboo 7 posts 127 karma points
    Nov 28, 2016 @ 08:16
    Enrico Magboo
    0

    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?)

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Nov 28, 2016 @ 09:29
    Sebastiaan Janssen
    0

    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.

  • Nik 1599 posts 7179 karma points MVP 6x c-trib
    Nov 28, 2016 @ 09:54
    Nik
    0

    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.

  • Enrico Magboo 7 posts 127 karma points
    Nov 29, 2016 @ 05:37
    Enrico Magboo
    0

    Thank you Nik. Will consider installing VS2015

Please Sign in or register to post replies

Write your reply to:

Draft