By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,669 Members | 2,203 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,669 IT Pros & Developers. It's quick & easy.

Creating satellite assemblies using al.exe

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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!
***************************

"nbaiju" wrote:
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

Jul 21 '05 #2

P: n/a

"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:81**********************************@microsof t.com...
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!
***************************

"nbaiju" wrote:
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

Jul 21 '05 #3

P: n/a
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."

Jul 21 '05 #4

P: n/a
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
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:l9**************@cpmsftngxa10.phx.gbl...
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."

Jul 21 '05 #5

P: n/a
Hi niranjan,

Would you please try to put de-DE in quotes as "de-DE" when using AL.exe?
Because according to the document, the cultrure string has to be put in
quotes. You can find more information from the following link:

http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfassemblygenerationutilityalexe.asp

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

Jul 21 '05 #6

P: n/a
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
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:H#**************@cpmsftngxa10.phx.gbl...
Hi niranjan,

Would you please try to put de-DE in quotes as "de-DE" when using AL.exe?
Because according to the document, the cultrure string has to be put in
quotes. You can find more information from the following link:

http://msdn.microsoft.com/library/de...us/cptools/htm l/cpgrfassemblygenerationutilityalexe.asp

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

Jul 21 '05 #7

P: n/a
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."

Jul 21 '05 #8

P: n/a
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));"?

"Kevin Yu [MSFT]" wrote:
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."

Jul 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.