mcintyre321 / EmbeddedResourceVirtualPathProvider

A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies
http://www.adverseconditionals.com/2011/07/portable-aspnet-code-using.html
MIT License
63 stars 42 forks source link

Publish Precompiled project not working #40

Open scaryterry opened 7 years ago

scaryterry commented 7 years ago

Publishing a web app that has the Precompile during publishing option ticked, causes any embedded resources from other projects/dlls to be missing - tested with .cshtml, .css, .js files.

Another minor issue is with bundling, the {version} tag used for example by the default jquery bundle stops working as soon as EmbeddedResourceVirtualPathProvider is added to a project

mcintyre321 commented 7 years ago

Are the embedded resources actually inside the dlls? You can check using ILSpy

scaryterry commented 7 years ago

Yes they are included from what I gather using ILSpy I'm uploading an example project that demonstrates the issue, In the archive you can find both the precompiled and normal published versions, as well as the project source. I used your own Mvc.JQuery.DataTables.Example as the base project since your own mvc.jquery.datatables has embedded views/scripts and expects the use of EmbeddedResourceVirtualPathProvider, so it's almost identical to my actual project.

Example.zip