Satellite assemblies, DOT NET Programming

What are satellite assemblies?

We use resource files to store data according to the localized languages. But when you actually go for the deployment you will not like to also install the "resx" or "txt" files. It is definitely not a good deployment practice to install the data which can be easily modified. In brief somehow we should install this in a binary format so that no end user can modify it. That's why the Microsoft introduced satellite assemblies.

The Satellite assemblies are assemblies which do not contain any source code. They contain only resource files. You can create a satellite assembly by using rsgen.exe and al.exe. They are in the binary DLL format which makes it easier to ship it during deployment. So finally during deployment you do not require to ship the resx files but only the compiled satellite DLL.

789_Satellite assembly.png

Figure: - resgen.exe and al.exe in action

The above diagram above will give you a whole picture of how to generate Satellite assembly. You can see from the above figure we require two exe resgen.exe & al.exe. Whenever you made your resx file or text file you must first convert it into a ".resource" files. This is completed by using the resgen.exe. The command snippet below is for resgen.exe where the LoginScreen.aspx.el.resx is the resx file and output is a Greek.resources file.  It always generates the "LoginScreen.resources" if you do not give the output file name.

resgen LoginScreen.aspx.el.resx Greek.resources

You can also create resx files from the txt file by using resgen.exe below is the code snippet for the same:-

resgen MyLanguage.txt MyLanguage.resx

In the above command snippet we will generate a MyLanguage.resx by using MyLanguag.txt file. You can make a DLL by using resource files and not resx so you must make this conversion. Now once the resource file is created its time make the compiled assembly of the same so that it can be shipped during the deployment. This is carry out by using the assembly linker tool al.exe given by the Microsoft. The command code snippet is below for the same.

al.exe /out:el.dll /c:de /embed:greek.resources

Posted Date: 9/25/2012 3:46:36 AM | Location : United States







Related Discussions:- Satellite assemblies, Assignment Help, Ask Question on Satellite assemblies, Get Answer, Expert's Help, Satellite assemblies Discussions

Write discussion on Satellite assemblies
Your posts are moderated
Related Questions
How would you implement inheritance using VB.NET? When we set out to execute a class using inheritance, we must first begin with an existing class from which we will derive our

I need Export Data using JSON Project Description: We could like to share our data with other websites via JSON. We are presently using Entity Framework with MySQL. We req

What is the namespace in which .NET have the data functionality classes? System.data : This namespace contains the basic objects used for accessing &  storing relational d

Construct a .NET wrapper for a C++ Dll - repost Project Description: We have a classic VC++ Dll (source code of DLL not required) that requires a .NET wrapper built by you. U

What is a dynamic update? Dynamic update is a powerful feature of WF that describes the ability of WF to modify the implementation path of a running workflow. This feature is u

What is CodeDom The "CodeDom" is an object model that represents actually a source code. It is designed for language independent - once you create a "CodeDom" hierarchy for a p

I am looking for someone to work on his website via team viewer. First I would want you to fill up this. On a scale from 1 - 10 please grade the following skills- C# - AJ

Explain different software development life cycles. The System Development Life Cycle (SDLC) is the overall process of developing information systems through multi stage proces

Program of addition of byte type variables - C# Program Program of addition of byte type variables, i need program code for performing addition of byte type variables. Can any

Question: (a) Prepare a diagram which explains where the different elements like Form, Window and Document, belong in the Document Object Model hierarchy and how properties are