Search code examples
asp.netresx

Are resx files necessary?


Currently have a solution that was created in VS2003 went to VS2005 and now is in VS2008. Since the start, each aspx and ascx had an associated .resx file. The resx files were autocreated, even though localization is not needed. Is it okay to get rid of these resx files? Will they improve performance at all since they are not there?

Interesting note, initially, the resx files were created in the same directory as aspx/ascx files. Now, with VS2008, if I create a resx file, it creates an App_LocalResources directory and puts all resx files there...


Solution

  • Yes, you can delete the .resx files, BUT make sure that your pages are already setup to work without the .resx files. By this I mean that your labels have a text value and it does not require the .resx file to supply it.

    Furthermore, if the files are already there, they don't cause all that many problems, I'd leave them.