views:

415

answers:

2

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  A: 

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.

womp
I'm wondering if this will cause the rest of the site to reset the Application state, etc. I've been on the bad end of resetting the app during a mid-day push. The users were...displeased. Don't know if that applies to this situation, though.
ajh1138
I believe that any modification made to the App_GlobalResources or App_LocalResources folder causes the app domain to be reloaded.
SkippyFire
+2  A: 

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.

Nariman