Reputation: 5089
I've set MvcBuildViews to true and that precompiled the views into a DLL file. My question is: Can I deploy this DLL and just remove the Views folder entirely? Are there settings that I'll need to make?
Thanks.
Upvotes: 4
Views: 1488
Reputation: 3326
I believe (correct me if I'm wrong) MvcBuildViews
just compiles your views, but you still need to distribute them.
The RazorGenerator project would be of interest to you, and can behave exactly like you require.
http://razorgenerator.codeplex.com/
Here's a write-up of how it works. I've used this before to build 'pluggable' MVC apps where only the binary is distributed, and not the views.
http://blog.davidebbo.com/2011/06/precompile-your-mvc-views-using.html
Upvotes: 1