Adding satellite assemblies to pre-compiled web applications

by lichen 9/28/2006 5:09:00 PM

In the following, we will provide step by step instructions are how to create the satellite assemblies and add them to precompiled ASP.NET application:

 

1)      Create resource files following the naming convention filename.locale.resx. The locale can be either the regular expression format [a-z]{2} for a language or [a-z]{2}-[A-Z]{2} for a dialect. For example, to create resource files for Simplified Chinese, we will copy the two resource files as SiteBuilderResources.zh-CN.resx and ManagerResources.zh-CN.resx and then translate them into Simplified Chinese.

2)      Compile and Link the resources files into the satellite assembly. Open the Visual Studio DOS command prompt and run the following commands:

 

resgen Resources.zh-CN.resx resources.zh-cn.resources

 

al /t:lib /embed:resources.zh-cn.resources /culture:zh-CN /out:App_GlobalResources.resources.dll

 

3)      Copy the App_GlobalResources.resources.dll into the bin\zh-CN directory under the root of the precompiled ASP.NET application.

 

Please also look at Ran Davidovitz's work: http://davidovitz.blogspot.com/2006/08/compiling-resource-file-in-precompiled.html

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | ASP.NET

Related posts

Comments are closed

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2010

      Sign in