MvcContrib uses it's own VirtualPathProvider called
AssemblyResourceProvider. This provider can not only use embedded
resources, but also maintains the ability to reference physical files
adhering to the standard MVC Area naming convention.
The existence of a file will ensure that the file's contents be
rendered rather than the associated embedded resource.
The goal is to simply prevent the recompilation of the portable area
and it's harness when making content changes
We can achieve this with some simple IIS trickery.
Let us assume we have two projects, PortableArea and
PortableAreaHarness. Let us also assume that the name of the area is
'foo'.
We setup an IIS Site (localhost:5555) and point it at the root of
PortableAreaHarness.
At this point, the VirtualPathProvider will search for files in
PortableAreaHarness/Areas/foo before hitting the embedded resources in
the PortabelArea assembly.
Now we create a virtual directory in ~/Areas name foo. This will
allow the VirtualFileProvider to resolve the physical files.
That's it. Now you can make changes to any content file in
PortableArea without having to recompile.
If you want to specifically test the assembly's embedded resources,
simply remove the virtual directory and put it back when you're done
testing.