I\'m serving my asp.net mvc views from many assemblies and copying views to the main application on post-build event.
This works, however, I realized, that when I ch
Consider the following project file outline:
...
This will add all aspx
and ascx
files in Views\
to your library as Embedded Resource
. Notice that EmbedViews
is added to DefaultTargets
before Build
- order is important here, I found out making that mistake myself :-)
Since editing all your project files to get this snippet in is cumbersome, you could make your own project template with this included.
Please let me know if this helped.