A Satellite Assembly is an assembly consists of resource Files and No Code. It's just a collection of resources which can be used. AssemblyCulture Attribute must be set for Satellite Assembly.
Saturday, July 23, 2011 12:14 PM
- Proposed as answer by Srinivasa Nadella Saturday, July 23, 2011 1:18 PM
This msdn page pretty much explains the purpose of Satellite Assemblies. Which is to provide culture specific resources independently of the main assembly.
When your program goes looking for a resources that it can't find, it attempts to locate it with a fallback mechanism. One of the fallback mechanisms involves the satellite assembly, a special assembly containing the resources for a particular culture (and no code). You can replace the satellite assembly without rebuilding your main assembly.Saturday, July 23, 2011 1:44 PM
Steps to Build and Compile the Satellite Assembly
1. Open the "Resource File" option from the Menu in Visual Studio 2010.
2. It opens up a Grid View with three columns in it as "Name", "Value" & "Comment".
3. For Ex: Add the "Name" as "GoodBye" and Value as "Sayonaara"
4. Save the File in a Location anywhere on the User Machine.
5. Now open the Visual Studio Command Prompt .
6. Provide the command as below
D:\Program Files\Microsoft Visual Studio 10.0\VC>al /t:lib /embed:E:\MSDN_Sample
Al.exe is the one which actually compiles the File and make it as "Resource.dll". The "Resource.dll" is nothing but a Satellite Assembly.
You can refer this dll in any of the .NET project. There are numerous examples provided on the Internet for accessing a Satellite Assembly.Saturday, July 23, 2011 5:08 PM