I'm afraid there is not yet any specific support for automatically building satellite assemblies. However you can get the same result manually with a combination of the <resgen> and <al> tasks.
the commandline to do what you're after would look somthing like:
resgen MyForm.fr.resx myappname.MyForm.fr.resources mkdir output/fr
al.exe /out:fr/myappname.resources.dll /culture:fr /embed:"myappname.MyForm.fr.resources"
/template:"myappname.exe
so in NAnt you could do :
<resgen input="MyForm.fr.resx" output="myappname.MyForm.fr.resources" /> <mkdir dir="fr" /> <!-- create this relative to the output dir--> <al culture="fr" input="myappname.MyForm.fr.resources" template=""myappname.exe" output="fr\myappname.resources.dll">
</al> where both <resgen> and <al> can be used with filesets.
This is a bit more cumbersome obviously. It would be nice to have the compiler tasks automatically do this the same way Vs.net does. If you're feeling adventurous you could implement that. :)
note. I got most of the info on localised assemblies from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cssample/html/vcsamlocalizedhelloworld.asp.
I haven't done a great deal of work with localised assemblies so I may have missed somthing.
Ian
Does nant support satellite assemblies?
I just began using nant and it seems to do a good job of compiling embedded resources into the main assembly. However some of our apps are localized which automatically generates a .resx file for each form in the format of “MyForm.fr.resx” .
In vs.net any resource file that contains a culture name in the middle of the file name (in this case ‘fr’) a separate assembly is created (satellite assembly – myappname.resources.dll) and put into a folder with the same name as the culture (in this case ‘/fr/’).
Nant seems to treat these resx files as regular resource files and simply embeds them into the project which in turn causes our projects to fail due to incorrect manifest definitions.
Can anyone help me in building satellite assemblies with nant?
Thanks
Darren
Darren Mombourquette Programmer, Applications Development prairieFyre Software Inc. 730-555 Leggett Drive, Tower B Kanata Ontario K2K 2X3 (p)613.599.0045 ext 111 (f)613.599.7677 http://www.prairiefyre.com
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users