Orchard.Core - Visual Studio giving warnings/errors when working on .cshtml files

Topics: Administration, Core, Troubleshooting
Apr 19, 2013 at 9:44 PM
Edited Apr 19, 2013 at 9:45 PM
Hello, I've downloaded the 1.6 source and have opened the solution in Visual Studio 2010. When editing any .cshtml file, I'm getting the following warnings / errors:

Image

full image here: http://i.imgur.com/WOx521v.png

I also tested this in Visual Studio 2012 and get the same result. It only occurs when working on the Orchard.Core project; when working on any other .cshtml file in the other projects in the solution I do not get the errors.

Any ideas?
Apr 24, 2013 at 2:14 AM
So no one has seen this? When you have the solution open and you open one of the views in Orchard.Core you don't get these warnings/errors?

It builds just fine btw, it's just unsettling.
Coordinator
Apr 24, 2013 at 2:49 AM
Visual Studio doesn't work well with dynamic types in views, it seems. You can ignore those, as it works fine at runtime.
Apr 26, 2013 at 3:13 AM
Create a normal MVC project and take a look at the Razor version in the web.config. Compare this to the version in Orchards web.config in Orchard.Web
Apr 26, 2013 at 10:13 PM
Thanks Hazza - that seemed to do the trick!
Apr 26, 2013 at 10:15 PM
Anytime :)