This project is read-only.

pageBaseType in precompiled views

Dec 13, 2011 at 8:38 PM
Edited Dec 13, 2011 at 9:26 PM

UPDATE: I think this was caused by me deriving MyCustomView<T> from MyCustomView instead of WebViewPage<T>

I am using the MSBuild task to generate precompiled views in an MVC3 project.

Today the RazorGenerator doesn't look at the pageBaseType setting in Views\Web.config so I modified the SetBaseType transformer to check and set the default base class on the RazorHost

Everything seems to work except for one oddity...the first time I compile all the views fail with compiler errors like "can not convert type object to string" etc

If i just recompile everything is I am guessing it has something to do with trying to compile the views before it has compiled my page base type (which is in the same project) any ideas of what it might be or how to fix?