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

≯℡__Kan透↙ 提交于 2019-12-05 17:16:33

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.

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.

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