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
As you have probably realized by now, Web pages are much more useful when they are dynamic. In Internet terminology, the word dynamic means several things. Primarily, it refers to

Improve an existing web application and design (ASP C# Azure Project Description: I want an experience programmer to take my Proof of Concept web app to a professional level.

Screen sharing Training software like GOTOMEETING Project Description: We do have online trainings business; we are providing trainings with webex or gotomeeting at this mome

What is the DataContext class and how is it related to LINQ? After you add a LINQ to SQL Classes item to a project and open the O/R Designer, the empty design surface shows an

Project Description: We have a classic VC++ Dll (source code of DLL not available) that requires a .NET wrapper built by you. Use latest Visual Studio and.Net framework should b

What is ReaderWriter Locks? You may want to lock the resource only whenever data is being written and permit multiple clients to parallel read data when data is not being updat

Site minder Authentication in SharePoint We have fit site minder agent in SharePoint 2010. We would like to have incorporate with site minder agent. Currently site-minder age

What is the difference among synchronous postback and asynchronous postback? The difference between synchronous and asynchronous postback is as follows: Asynchronous postbac

How will you do code reviews? The way in which the code reviews are done change from person to person and also from company to company. But generally when a project is started

NameSpace Namespace consists of 2  main basic functionality :- NameSpace Logically types group , ex. System.Web.UI logically groups our UI related features. In Object O