Razor error when trying to install Octopack

Hi! I tried to install octopack(latest) in to my web-based project(NancyFX 1.2.0 & Nancy.ViewEngines.Razor 1.2.0) and I’ve get the error :

Unable to resolve dependencies. ‘Microsoft.AspNet.Razor 2.0.30506’ is not compatible with ‘Microsoft.AspNet.Mvc 5.2.3 constraint: Microsoft.AspNet.Razor (>= 3.2.3 && < 3.3.0)’, ‘Microsoft.AspNet.WebPages 3.2.3 constraint: Microsoft.AspNet.Razor (>= 3.2.3 && < 3.3.0)’, ‘Nancy.Viewengines.Razor 1.2.0 constraint: Microsoft.AspNet.Razor (>= 2.0.30506)’.

What I am doing wrong? Tnx!

Hi Slava,

Thank you for getting in touch. At what stage do you get the error, at install time, compile time or package build time?

If it is install time, what is the nuget install command you are using? Also can you send me your packages.config file.

Octopack does not have any dependencies, so it should not bring anything new in.

Robert W

Hi, I’ve get the error at install time by nuget command Install-Package OctoPack. We have another similar projects in solution, but without razor
nancy package and octopack installs correctly for all of them. I know that
is only our specific error, but perhaps you can help us)
packages.config