开发者

asp.net MVC: binary deployment of mvc views [duplicate]

开发者 https://www.devze.com 2022-12-22 16:01 出处:网络
This question already has answers here: Using VirtualPathProvider to load ASP.NET MVC views from DLLs (2 answers)
This question already has answers here: Using VirtualPathProvider to load ASP.NET MVC views from DLLs (2 answers) Closed 3 years ago.

how can I deploy an mvc application, without publishing the aspx view files. Is there a way to publish the generated dll assemblies?

In the project file is an option "MvcBuildViews", which builds these dll files. But they are build in a temp directory and not used in the publishment process. Is there a way to incl开发者_如何学运维ude these files?

best regards


I would build them into an assembly as embedded resources, then write a custom View Factory to get them.

0

精彩评论

暂无评论...
验证码 换一张
取 消