EmbeddedResourceVirtualPathProvider icon indicating copy to clipboard operation
EmbeddedResourceVirtualPathProvider copied to clipboard

Publish Precompiled project not working

Open scaryterry opened this issue 8 years ago • 2 comments

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

scaryterry avatar Sep 26 '17 14:09 scaryterry

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

mcintyre321 avatar Sep 27 '17 03:09 mcintyre321

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

scaryterry avatar Sep 27 '17 07:09 scaryterry