MVC Portable Areas – Static Files as Embedded Resources

added by crpietschmann
4/6/2010 7:31:39 AM


This is the third post in a series related to build and deployment considerations as I’ve been exploring MVC Portable Areas. In the last post, I walked through a convention for managing static files. In this post I’ll discuss another approach to manage static files (e.g., images, css, js, etc.). With this approach, you *also* compile the static files as embedded resources into the assembly similar to the *.aspx pages. Once again, you can set this to happen automatically by simply modifying your *.csproj file to include the desired extensions so you don’t have to remember every time you add a file: