What do you mean by Satellite Assembly in .NET?You might
be using resource files in your project. During deployment, it is not
recommended to deploy resource files directly. Instead if you could convert
it into an intermediate form which doesnt include any source code
then that will be the best practice to proceed with. This is achieved
using satellite assemblies in .NET.
The resource files can either be of .txt extension or .resx extension. To convert these files into a Binary DLL file belonging to satellite assembly, you have to use two executables which are mentioned below: resgen.exe: This executable is used to convert resource files of extension .txt or .resx into files of extension .resources. Only files of .resources extension can be converted into binary DLL. This executable is also used to convert .txt files into .resx files. al.exe: This executable accepts the .resources files and .gif files if any and converts them into binary DLL file belonging to satellite assembly. This file will not include any code contents and hence deploying it is efficient as well as safe. Assume that you have a text file sampleTxt.txt and a resource file sampleResx.resx. You have to package these files into a binary DLL for deployment. Along with these files, you also have two image files sampleImg1.gif, sampleImg2.gif. These files have to be packaged into the satellite assembly as well. How do you do it? That is pictorially represented using the diagram shown below: IMAGE Step1: Convert
the text file sampleTxt.txt into file of extension .resx using resgen.exe: Step2: Convert
sampleTxt.resx and sampleResx.resx into .resources file using resgen.exe: Step3: Build
the Satellite Assembly using the .resource files and .gif files: The output.dll generated out of this command is the satellite assembly which can be deployed there by hiding any code content of your resource files and also ensuring localization
|