We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Richard Szalay • 13 years ago

Hi Rob,

PrecompileBeforePublish, like MvcBuildViews, is a wrapper for aspnet_compiler (which compiles the views into dlls). The only reason to use PBP over MBV is that the latter doesn't seem to work in the Web Publishing Pipeline.

I don't tweet my posts, but I should start ;)

Rich

Richard Szalay • 13 years ago

I'd actually recommend disabling "MvcBuildViews" and enabling "PrecompileBeforePublish", since the latter happens as part of the copy/publish process.

Rob • 13 years ago

Hi Richard,

Thanks for the suggestion! I hadn't heard of that option before, and a quick Google shows why not - noone else seems to! I found your answer on StackOverflow :)

Does PrecompileBeforePublish transform the views into the dll or does it do the same thing as MvcBuildViews, but just at a different point in the pipeline?

Just took a look at your blog and I'm pretty excited to hear about the other stuff you end up blogging about MsDeploy so I've followed you on twitter (I assume you tweet your blog posts?) :P