Dec 12, 2014 at 8:23 PM
Edited Dec 12, 2014 at 8:23 PM
Hey Orchard gang - I just had a bang-up, drag out fight with Orchard and VS2013 and prevailed - so I'm posting here to help anyone else who runs into the same issue. Stackoverflow and Google are teeming with these issues, but my solution came the hard
I suddenly lost Razor intellisense on all of my views. The project still built and run, but the VS editor was worse than useless - red squigglies everywhere. What's a Model? What do you mean,
? Etc. Super frustrating.
I tried everything I could think of - unload / reload the project, replace the web.config file, update all of the references - nothing worked. Importantly, I dropped and re-added the MVC 5 reference from the Orchard lib folder - as you should.
So - I looked at the csproj file after unloading (hint: R-click, unload project, edit .csproj. You'll see the underlying XML).
That's when I saw this node:
<Reference Include="System.Web.Mvc, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
WTF? Wrong library reference! So, I manually changed it to:
<Reference Include="System.Web.Mvc, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
... reload project, and all is well with the world again.
Clearly more of a VS than Orchard issue, but one I could see biting Orchard devs. So, there you have it. Buy me a beer at the next Harvest if this helped ;-)