I\'m trying to use the technique described in this blog to add embedded dll resources to my bundles.
I have created the custom VirtualPathProvider
below.
You will need to tell the BundleTable to use your VirtualPathProvider like this:
BundleTable.VirtualPathProvider = new EmbeddedVirtualPathProvider(typeof(My.Custom.Type));
This functionality was added in v1.1.0 of the Microsoft ASP.NET Web Optimization Framework.
Also you need to make sure that requests for CSS file go through the ASP.NET pipeline by adding this to your web.config.
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
The secondary problem can be solved by setting RouteCollection.RouteExistingFiles
to true