Questions tagged [resx]

.resx files are resource lists used in .NET applications.

ResX Resource Files are used in .net applications for translating applications into several languages. Each language has its own file, e.g. a file "Default.aspx" could have a resx-file "Default.aspx.de.resx" for german translation and "Default.aspx.fr.resx" for french translation. Default translation is english language and results in file "Default.aspx.resx" without any language code. See Microsoft Documentation for details.

1010 questions
33
votes
7 answers

The item was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter

While compiling my Visual Studio C# project, i am getting the following error: The item "obj\Debug\SampleProject.Forms.MDIMain.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the…
27
votes
2 answers

Editing resource files without recompiling ASP.NET application

I'd like to enable the resource files to be editable after deployment. I read this post which suggests that this is possible, but I can't seem to figure out what settings I need to change to enable this. I have added the App_GlobalResources folder…
deckerdev
  • 2,766
  • 2
  • 21
  • 23
26
votes
8 answers

Modifying .resx file in C#

I have a .resx file that contains name-value pairs (both strings). Now I want to modify the values in certain name-value pairs programmatically using C#. How can I achieve that?
deepak
25
votes
2 answers

Visual Studio's Access Modifier drop down option is disabled for resource file

Not sure why Access Modifier drop down is disabled for a Resource file. alt text http://img683.imageshack.us/img683/9157/accessmodifier.png Here are file properties: alt text http://img199.imageshack.us/img199/3930/resxprop.png
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
24
votes
7 answers

C# - Fastest way to get resource string from assembly

I really don't know/have the answer, knowledge to find a resource value using a key from a resx file in a assembly using c#.(or may be i am ignorant). What would be the fastest code, way i can retrieve string values or values using a key from a…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
23
votes
2 answers

json files in a resx are binary instead of text

I have some test data (json files) that I am using while testing some software. It is static data and I need the tests to run locally and on build machines that I don't have to much control of. In order to get uniform access to the test data (json…
Ryan Pedersen
  • 3,177
  • 27
  • 39
23
votes
2 answers

How to avoid unnecessary changes in *.designer.cs and *.resx?

For some reason Visual Studio winforms designer time to time applies dull changes to form designer files and respective resx. Most annoying so far: changes to order of controls declarations/initialization changes to some control sizes (most notably…
Andriy K
  • 3,302
  • 31
  • 42
23
votes
7 answers

How can I compare multiple .resx files?

How can I compare the content of two (or more) large .resx files? With hundreds of Name/Value pairs in each file, it'd be very helpful to view a combined version. I'm especially interested in Name/Value pairs which are present in the neutral culture…
jalbert
  • 3,047
  • 2
  • 20
  • 21
22
votes
1 answer

Avoiding merge conflicts in resx files

In our C# MVC project we are storing our localizable strings in .resx files. Every time we add a new string, Visual Studio puts it at the bottom of the file, which means that if two strings are added in different branches then we will get a merge…
thelem
  • 2,642
  • 1
  • 24
  • 34
21
votes
7 answers

How to get Name by string Value from a .NET resource (RESX) file

Here's how my RESX file look like: Name Value Comments Rule_seconds seconds seconds Rule_Sound Sound Sound What I want is: Name by string Value, something like below: public string GetResxNameByValue(string…
Learner
  • 3,904
  • 6
  • 29
  • 44
19
votes
3 answers

Are resx files suitable for Internationalization?

I have been given the task of internationalizing a large client-server application. The remit is that I make the app 'World Ready' and then the compiled application and resources gets passed over to colleagues in another country for translation and…
Mark Robinson
  • 13,128
  • 13
  • 63
  • 81
19
votes
4 answers

Visual Studio 2015, can't change access modifier of new resources files

I'm trying to create new resources files in VS2015. I created them fine, but when I try to change the "Access Modifier", the dropdown is disabled... Any ideas? I'm working in a ASP.NET MVC 6 (ASP.NET5). The project is a Class Library, but I have…
chemitaxis
  • 13,889
  • 17
  • 74
  • 125
18
votes
5 answers

Do I need the resx Designer.cs file?

My company uses a combination of some database tables, a web page front end and an "export" application to handle our string resources in our web sites. The export application used to work just fine when we used VS2008, but since switching to VS2010…
Antony Scott
  • 21,690
  • 12
  • 62
  • 94
18
votes
6 answers

MVC4 localization. Accessing resx from view

In my view I would like to access resource strings from the specific local resource on that file.. Just as you know it from web-forms: (string)GetLocalResource("Title"); Painless and smooth. The framework handles which .resx file to get from the…
Kasper Skov
  • 1,954
  • 10
  • 32
  • 53
17
votes
2 answers

How to get the comment from a .resx file entry

Strings in resource files have a name, a value and a comment The ResXResourceReader class gives me access to the name and the value. Is there a way to read the comment?
Orlando Osorio
  • 3,116
  • 7
  • 29
  • 52
1
2
3
67 68