.NET Projects: Where can I put the .resx files?

Where can I put the .resx files? Sometimes I see these files in the Properties folder. Are there any recommendations on this?

Thank!

+2


source to share


3 answers


In a WinForms application, the .resx file associated with the class (form, user control, ...) is stored side-by-side with the source code file (e.g. C #). In addition, a global .resx file is created in the properties, allowing you to store global data like messages, images, ...



+1


source


Depends on what you are doing.

For example, a web application is located in the App_GlobalResources or App_LocalResources folder.



For other projects, I would create a Resource folder and put them there.

+3


source


If you right click on your project in VS Solution Explorer you should have a New Folder option then you will have a list of the folder you can create. App_GlobalResources and App_LocalResources are different.

For shared strings and project resources, add content to the App_Global forlder application. for specific form resources, add content to the App_Local folder instead.

Check here for more information

0


source







All Articles