Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resource file code not generated

I have my default resource file Resources.resx for which visual studio nicely generates a designer.cs class, but when I try to create Resources.de-DE.resx, it does not generate.

I checked all the properties for both files are same.

It does generate for Resources1.resx, but not for Resources.de-DE.resx or Resources.en-US.resx.

like image 395
TRS Avatar asked Jul 30 '13 09:07

TRS


People also ask

How do you regenerate a RESX file?

resx file? If so, go to project properties, then the "Resources" tab, and there should be a big link to click to regenerate it.

How do I find my Resx code?

Open a . resx file in the XML (Text) editor. Press Ctrl+Alt+F or choose ReSharper | Windows | File Structure from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there.


1 Answers

hello @TRS you may be confused about that there is a Designer.cs present For Resources.resx and there should be someDesigner.cs for Resources.de-DE.resx but this is not the case because designer file would be same for all the resource files. and also the property that is created in Designer.cs is also common that means you will use this property for every conversion so the difference that you can make is on the basis of ResourceCulture.

like image 196
loop Avatar answered Sep 23 '22 12:09

loop