This topic was posted a while back and there wasn't any progress...
https://www.nopcommerce.com/en/boards/topic/33123/precompile-razor-views
Was hoping if anyone here has had success loading precompiled razor views within a NopCommerce plugin.
So far I've been successful:
- Updating the Nop.Web project to precompile on publish -- works just fine.
- Updating a plugin to precompiled, and while it does compile the views into the plugin output assembly, the runtime fails to find the view when returning a view (even with custom IViewLocationExpander).
Has anyone been successful precompiling views within your plugin? Thanks for your consideration!
(I realize this post is very ambiguous since there are no code samples. If anyone is interested, I can setup a NopCommerce fork with an example so we can test it out)