On a deployed ASP.NET web site project, can I update a .resx file without recompiling?

这一生的挚爱 提交于 2019-12-07 07:56:43

问题


I'm deploying an ASP.NET application to a locked down Production environment. Pushing assemblies (satellite resource assemblies included) into this environment has process associated with it, but copying non-assemblies to the environment does not.

On an ASP.NET web site project, can I update a .resx file without recompiling?


回答1:


I guess it depends on what your app is doing with them.

If you're pushing .resx files into the App_LocalResources folder of your website, they will be Just-In-Time compiled automatically as soon as you do that. So in this case you wouldn't have to recompile anything.




回答2:


No, you can't. Not only does it force recompilation but it will also unload the appdomain and trigger an application restart (in process memory is lost). There's no way around this with the built-in provider. More context is available here: http://www.onpreinit.com/2009/06/updatable-aspnet-resx-resource-provider.html.



来源:https://stackoverflow.com/questions/703054/on-a-deployed-asp-net-web-site-project-can-i-update-a-resx-file-without-recomp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!