Copied to clipboard

Flag this post as spam?

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


  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    May 08, 2015 @ 15:04
    Nik
    0

    MVC 5, Umbraco Nuget Install

    Hi,

    So I'm not certain if I'm posting in the right place, however I've been unable to install the Umbraco CMS via nuget into a new MVC 5 project in Visual Studio.

    It is trying to install an old version of MVC 4, but it fails saying that there is no Umbraocms.Core version that is compatible with this version of MVC.

    Exact error message:

    Updating 'Microsoft.AspNet.Mvc 5.2.3' to 'Microsoft.AspNet.Mvc 4.0.20710.0' failed. Unable to find a version of 'UmbracoCms.Core' that is compatible with 'Microsoft.AspNet.Mvc 4.0.20710.0'.

    A little bit of investigation leads me to this dependency:

    Microsoft ASP.NET MVC Fixed DisplayModes,

    I believe that this dependency should no longer be required as it is officially depreciated with MVC 5. Has anyone else had this issue?

    https://www.nuget.org/packages/Microsoft.AspNet.Mvc.FixedDisplayModes/1.0.1 (Link to the package)

    The following is the full install log for the UmbracoCMS.Core nuget:

    Attempting to resolve dependency 'Microsoft.AspNet.Mvc (≥ 4.0.30506.0 && < 6.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebPages (≥ 3.2.3 && < 3.3.0)'.
    Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.2.3 && < 3.3.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi (≥ 4.0.30506 && < 6.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 4.0.20710.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 4.0.20710.0 && < 4.1)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 4.0.20710.0 && < 4.1)'.
    Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.0.20710.0 && < 2.1)'.
    Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.5.6)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 4.0.30506 && < 6.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 4.0.30506 && < 6.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 4.0.30506 && < 6.0.0)'.
    Attempting to resolve dependency 'Microsoft.AspNet.Mvc.FixedDisplayModes (≥ 1.0.1)'.
    Attempting to resolve dependency 'Microsoft.AspNet.Mvc (≥ 4.0.20710.0 && < 4.1)'.
    Updating 'Microsoft.AspNet.Mvc 5.2.3' to 'Microsoft.AspNet.Mvc 4.0.20710.0'
    failed. Unable to find a version of 'UmbracoCms.Core' that is compatible with
    'Microsoft.AspNet.Mvc 4.0.20710.0'.
    
  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 08, 2015 @ 15:09
    Jan Skovgaard
    0

    Hi Nik

    I don't think that Umbraco 7 is yet compatible with MVC 5 - Can't remember, which release it's been scheduled for.

    /Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 08, 2015 @ 15:12
    Jan Skovgaard
    0

    Hi again

    Seems like it's at least due in v8 according to the tasks mentioned here https://our.umbraco.org/contribute/releases/800 - But think I saw somewhere that this has also been ported to the 7.2.5 branch...but can't quite remember it unfortunately - But feeling confident that MVC5 support will be added sooner.

    /Jan

  • Nik 1617 posts 7263 karma points MVP 7x c-trib
    May 08, 2015 @ 15:30
    Nik
    0

    Hi Jan,

    I was seeing conflicting information about this which was part of the reason for the post. I saw this on GitHub:

    https://github.com/umbraco/Umbraco-CMS/pull/608

    and this change was showing in the 7.2.4 and 7.2.5 nuget packages.

    Which is why I thought I would post on here. It would be nice to get MVC 5 support :-) I'm fairly new to Umbraco, but I'm loving it so far.

    Nik

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 11, 2015 @ 07:19
    Jan Skovgaard
    0

    Hi Nik

    Yeah, seems like a branch that has not been merged into core yet. The fork you're looking on belongs to Shannon and does not necessarily reflect what's in the Umbraco core.

    Glad to hear that you're having a good time with Umbraco :)

    /Jan

  • Karan 1 post 21 karma points
    May 25, 2015 @ 11:30
    Karan
    0

    Hi Nik,

    Just read a excellent solution mentioned in the post present in the link

    https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/64862-Error-trying-to-install-Umbraco-CMS-with-Visual-Studio

    Solution is to install "FixedDisplayModes" package before installing Umbraco and it will work good

    Thanks,

    Karan

  • Tristan Stahnke 4 posts 25 karma points
    Jun 09, 2015 @ 03:38
    Tristan Stahnke
    0

    I've just run into an issue with MVC 5.2.3 where returning CurrentUmbracoPage() interferes with macro rendering on the page. I've had to downgrade to MVC 4 for it to work properly. Even though MVC 5 may work in the most recent umbraco, I'm not sure it is officially supported yet.

  • satish 8 posts 29 karma points
    Jul 15, 2015 @ 15:17
    satish
    0

    me too had removed all mvc 5 references and then installed mvc 4 before installing umbraco 7.2.4, it worked fine.

Please Sign in or register to post replies

Write your reply to:

Draft