I am working on a project, which is a site consisting of self-hosting, hosting 2 separate "plugins". I am trying to configure it so that I can serve my static content files from the plugin directories so that I can edit them on the go during debugging and not have to reinstall to copy chages to the bin directory.
I already have this work for 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 cannot 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 establish a virtual path provider for all served files, not just razor files?
servicestack static-content
omockler
source share