Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use resource files instead of satellite assemblies

We are using a .NET component that uses satellite assemblies for localization. However, if we want to create our own translations, we would have to send our translations or pay for the source code in order to get the Key File for signing.

Is it possible to load a .resources file in our main application, so that the localized strings are used by the component?

Thanks a lot!

like image 219
Simon Avatar asked Jul 13 '11 12:07

Simon


People also ask

What is a .resx file and how do you use it?

The . resx resource file format consists of XML entries that specify objects and strings inside XML tags. One advantage of a . resx file is that when opened with a text editor (such as Notepad) it can be written to, parsed, and manipulated.

What is a satellite assembly?

A satellite assembly is a .NET Framework assembly containing resources specific to a given language. Using satellite assemblies, you can place resources for different languages in different assemblies, and the correct assembly is loaded into memory only if the user selects to view the application in that language.

What is ResourceManager in C#?

ResourceManager(String, Assembly) looks up resources based on two pieces of information that you supply: the base name of the .resources file, and the assembly in which the default .resources file resides. The base name includes the namespace and root name of the .resources file, without its culture or extension.

Which of the following commands can be used to directly embed a resource in an assembly at the command line?

The C# compiler used to generate the assembly supports two relevant command-line options: /resource: to embed a resource and /linkresource: to link to an external resource. This version of the assembly demonstrates embedding a resource, so the makefile uses the /resource: option.


1 Answers

Why not to resign all assemblies?

like image 107
adontz Avatar answered Oct 11 '22 14:10

adontz