I'm working on a project that is a self hosted service stack site hosting 2 separate "Plugins". I am trying to set it up so that I can serve up my static content files from the plugin directories so that I can edit them on the fly while debugging and not require a rebuild to copy the chages to the bin directory.
I already have this working for the my razor files by adding this:
Plugins.Add(new RazorFormat { VirtualPathProvider = new FileSystemVirtualPathProvider(this, "../../../Project1") });
Plugins.Add(new RazorFormat { VirtualPathProvider = new FileSystemVirtualPathProvider(this, "../../../Project2") });
I cant seem to figure out how to do the same for my static content files. It seems that I could fix one project at a time by adding EndpointHostConfig.Instance.WebHostPhysicalPath = "../../../ProjectName";
but not both at the same time? Is there a way to set the virtual path provider for all files served and not just razor files?