views:

368

answers:

1

I have an ASP.NET MVC 2 Beta app and have set <MvcBuildViews>true</MvcBuildViews>

in the property group at the top of my csproj file. But my views are not being compiled. A closer look at the .csproj file shows a squiggly under the MvcBuildViews tag and when I hover over it, it says

The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'MvcBuildViews' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.

What am I doing wrong?

A: 

Many elements you define in the .config are not part of that schema, but still operate. It's the same way for MSBuild scripts.

Maslow