Questions tagged [satellite-assembly]

A satellite assembly is a compiled library (DLL) that contains (“localizable”) resources such as strings, bitmaps, etc. You are likely to use them when creating a multilingual (UI) application. By definition, satellite assemblies do not contain code, except for that which is auto generated.

A satellite assembly is a compiled library (DLL) that contains (“localizable”) resources such as strings, bitmaps, etc. You are likely to use them when creating a multilingual (UI) application. Satellite assemblies provide you with the capability of designing and deploying your solution to multiple cultures, rather than hard coding strings, bitmaps, etc., into your main application. Satellite assemblies are used to deploy applications in multiple cultures (not languages), with 1 satellite assembly per culture - this is the default behavior, but you can obviously have more granular control if you handle the build process manually.

By definition, satellite assemblies do not contain code, except for that which is auto generated. Therefore, they cannot be executed as they are not in the main assembly. However, note that satellite assemblies are associated with a main assembly that usually contains default neutral resources (for example, en-US). A big benefit is that you can add support for a new culture or replace/update satellite assemblies without recompiling or replacing the application’s main assembly.

Resource files have the extension .resx and are stored in folders matching the culture. Once compiled, .resources files are created. These are binary representations of the .resx files. Once the satellite assembly is generated, the resources will be stored in a .dll file.

From MSDN blogs

98 questions
0
votes
1 answer

Satellite dll:s from Nuget not working when compiling with .NET Native tool chain

I have a Xamarin Forms PCL Project consuming a nuget package. The nuget package contains translated texts in satellite dll:s (xyz.resources.dll). The translated texts shows up correctly in Android and iOS. They do also work for UWP when compiled…
Brosten
  • 41
  • 1
  • 3
0
votes
1 answer

Problem in reading string resources kept in different assembly having resx files

I have string resources defined in 'resx' files in the separate assembly. The project reference to that assembly is added to my WinForm project. The project reference is added correctly and I can access string at the coding time. However, at run…
Learner
  • 4,661
  • 9
  • 56
  • 102
0
votes
1 answer

Can I use a satellite resource assembly for one language in the OS for another language simply by changing the name of the folder the dll appears in?

If I compile a .NET satellite assembly with localised resources, does the assembly itself know which language it is for, or is this implied in the folder in which it appears? If I decide to create a localised assembly where all strings are enclosed…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
0
votes
0 answers

Xamarin Studio: Satellite assembly not copied with Xamarin Studio on macOS

We have build a Xamarin.Froms library with some common XAML pages and common translations (satellite assembly from resx files). This library is packed as nuget package. If we use the assembly in one of our apps we have localization problems if we…
WebDucer
  • 1,114
  • 2
  • 16
  • 39
0
votes
1 answer

Enumerate the languages supported by satellite assemblies

Here is the line of code which help to find assembly for required culture: Assembly.GetExecutingAssembly().GetSatelliteAssembly(new CultureInfo(cultureCode)) But how to find languages for which satellite assemblies exist for application, lets say…
Ankush Madankar
  • 3,689
  • 4
  • 40
  • 74
0
votes
1 answer

Localization : Rendering the text for controls on the form without delay/flickering

I'm working on one application to which i would like to support localization. i have implemented the Satellite assembly concept to implement the Localization but the problem is it will load/render the text of all controls at runtime based on the…
Sudhakar Tillapudi
  • 25,935
  • 5
  • 37
  • 67
0
votes
0 answers

Scalability of localization via satellite assemblies for many projects

I am working on a .Net software product that consists of multiple applications of various sizes and dozens (potentially hundreds) of assemblies. Everything must be translated into several languages. Whereever I look, the suggested way to localize…
Peter
  • 43
  • 7
0
votes
1 answer

How to access resources from an external assembly

I want to create a vb.net project that I will use to only hold image and string resources that I will need in multiple projects. What I can't figure out is how do I access these resources using code from other projects.
Dennis
  • 179
  • 1
  • 2
  • 9
0
votes
1 answer

Satellite assemblies and FullTrust issues when .NET exe is on the network

I'm executing my .NET app from a network share. Since framework 3.5 SP1, and as explained here: http://blogs.msdn.com/shawnfa/archive/2008/05/12/fulltrust-on-the-localintranet.aspx, the main exe and all the DLLs located in the same folder (but not…
leo
  • 1,134
  • 1
  • 8
  • 20
0
votes
1 answer

Trying to build a WinForms application with all satellite resource assemblies included

I'm using VS 2013 to build a C# WinForms application that ships as a single EXE file. So far, this was no problem using ilmerge as a post-build step in order to include all needed DLLs. Even ActiveX components can be embedded without problems. But…
Stefan
  • 1,036
  • 10
  • 32
0
votes
1 answer

How to embed, and get resources from Satellite Assembly In .NET MVC site for multiple locales

STEP 1: OK,I know I have read every page on the net about this so I finally broke down and ended up here at SOF. Here is my resource file code: using (ResourceWriter rw = new ResourceWriter(@"C:\pathto\errors.resources")) { …
0
votes
1 answer

NuGet satellite package not added to the lib of the main package

I'm trying to create a nuget package for the localization of another package, and I'm following the satellite package approach. I'm pretty sure to have followed these rules strictly, and the naming conventions as well, but as I download the…
tanathos
  • 5,566
  • 4
  • 34
  • 46
0
votes
1 answer

culture folder is not created during compilation using satellite assembly

I am working on satellite assembly.In future we need to use resource "DLL" instead of .Resx file of all culture.everything is fine but when i am compile the project using batch,few culture folder is not created inside obj\debug. please see in below…
user2717258
  • 46
  • 3
  • 11
0
votes
1 answer

Where to place NeutralResourcesLanguageAttribute for an ASP.NET MVC app?

Simple question: Where should I place [assembly: NeutralResourcesLanguageAttribute("en-US" , UltimateResourceFallbackLocation.Satellite)] for an ASP.NET MVC application? On the HttpApplication class in Global.asax.cs?
Robert Claypool
  • 4,262
  • 9
  • 50
  • 61
0
votes
1 answer

ResourceManager falls back to default resources instead of reading from satellite assembly

I've the following folder structure for three projects: MyClassLibrary1 Class1.cs Resources\ en-GB\ Strings.en-GB.txt Strings.resx Strings.designer.cs (auto-generated) MyClassLibrary2 (references MyClassLibrary1) …
gplusplus
  • 336
  • 1
  • 5
  • 12