precompile App_LocalResources in Visual Studio

Posted by jazbit on Stack Overflow See other posts from Stack Overflow or by jazbit
Published on 2010-05-30T09:14:39Z Indexed on 2010/05/30 9:22 UTC
Read the original article Hit count: 340

Filed under:
|

My web-application project (not "web-site" project) is translated to 15 different languages using the ASP.NET's built-in resource engine (I have tons of *.aspx.resx file in the "App_LocalREsources" folder).

All these resources are precompiled by ASP.NET when I first launch the application and it takes a LOT of time. A LOT. 5-10 minutes. I have to wait 5-10 minutes every time I make soe tiny change to my code to see how it works.

Is there any way to compile these resource in Visual Studio? Changing the "Build Action" for all these resx-files to "Embedded resource" does not work :( (or I'm doing it wrong?)

PS. I know I can write a batch file that will launch aspnet_compiler.exe and manually compile the app with all the resources, but thats a "hack". I need a documented "Visual Studio"-way to achieve this. Cause I have a setup-project for this app in the same solution, that picks up the "project output" of this web-app (and it won't pick-up any manually precompiled files I made)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about visual-studio