Creating satellite assemblies using al.exe

  • Thread starter Thread starter nbaiju
  • Start date Start date
N

nbaiju

Hi,
I am building a asp.net application which has satellite assemblies. When
building the satellite assemblies dll's from Visual Studio 2003 GUI the
application works fine . i.e. the resource dll's of different cultures are
loaded correctly. But When I build the satellite assemblies dll's using
al.exe the application defaults to the culture neutral strings. I am using
the command line below to build my resource dll's.

al /t:lib /culture:de-DE /embed:myapp.mytext.de-de.resources
/out:myapp.resources.dll /fileversion:1.0.1822.21664 /v:1.0.1822.21664

Thanks,
Niranjan
 
Is it a requirement that you link the assemblies in this manner (ie, can they
run on their own?).


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Cowboy (Gregory A. Beamer) - MVP said:
Is it a requirement that you link the assemblies in this manner (ie, can they
run on their own?).


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Hi Niranjan,

I didn't see anything in your reply. Could you try to use /culture:de in
your al.exe parameters?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi Kevin,

Sorry about the blank message. I am trying to automate the build using nant.
I have a resource file mytext.de-de.resx which I convert to
mytext.de-de.resources using resgen. Then i use AL.exe to convert the
mytext.de-de.resources to myapp.resources.dll and place it under
/bin/de-DE/myapp.resources.dll . If i build my solution using MS VS 2003
this resource file is build in this place and the application works without
any error. But if i use resgen and al to create this file and place it in
this directory it does not work. I tried the /culture:de and placed the dll
in /bin/de and the application picked it up. But i need to be
language-country specific for my satellite assemblies.

Thanks,
Niranjan
 
Hi Kevin,
I tired the quotes with no sucess. The documentation says that the double
quote is required only if there are spaces in the culture string. Is there a
way to see the commands and options MS Visual Studio uses when it builds ?

Thanks,
Niranjan
 
Hi Niranjan,

As far as I know, we cannot see the commands that Visual Studio IDE uses in
current version. For this issue, I suggestion you try the
microsoft.public.vsnet.ide group for more information.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
I have a very similar problem. When Using Windows Forms, satellite assemblies
work fine when created by the IDE but don't work when embedded using AL.exe.
The problem may be related to how the form creates the resource reference as
in "System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));"?
 
Back
Top