NAnt dev,
 
I posted recently to the user list and realize now that it should go to the dev list.  I believe it relates to Arjen Poutsma's patch recently to the Al task.  Is it possible to get this fix added to the <solution> task?  I'd be happy to look at the code if someone can point the way.  I'm new to .NET and C# but have several years of development experience with other languages including java (code looks similar).  Here's what I posted:
 

I was attempting to use the <solution> task on a web project and ran into some problems.  It would build the application and seem successful, but the app wouldn't run.  I noticed some directory structure differences between the VS.NET and NAnt build.  So I created the .build with slingshot and began monkeying around.  What I had to change to get this build to be successful was:

ADD

    <mkdir dir="${build.dir}\de" />
    <mkdir dir="${build.dir}\en-au" />
    <mkdir dir="${build.dir}\en-gb" />
    <mkdir dir="${build.dir}\es" />
    <mkdir dir="${build.dir}\fr" />
    <mkdir dir="${build.dir}\ja" />

CHANGE
from:

<resgen input=".\Resources\Strings.de.resx" output="${build.dir}\MyProject.Strings.de.resources" />
    <resgen input=".\Resources\Strings.en-au.resx" output="${build.dir}\MyProject.Strings.en-au.resources" />
    <resgen input=".\Resources\Strings.en-gb.resx" output="${build.dir}\MyProject.Strings.en-gb.resources" />
    <resgen input=".\Resources\Strings.es.resx" output="${build.dir}\MyProject.Strings.es.resources" />
    <resgen input=".\Resources\Strings.fr.resx" output="${build.dir}\MyProject.Strings.fr.resources" />
    <resgen input=".\Resources\strings.ja.resx" output="${build.dir}\MyProject.strings.ja.resources" />
    <resgen input=".\Resources\Strings.resx" output="${build.dir}\MyProject.Strings.resources" />

to:

<resgen input=".\Resources\Strings.de.resx" output="${build.dir}\de\MyProject.Resources.Strings.de.resources" />
    <resgen input=".\Resources\Strings.en-au.resx" output="${build.dir}\en-au\MyProject.Resources.Strings.en-au.resources" />
    <resgen input=".\Resources\Strings.en-gb.resx" output="${build.dir}\en-gb\MyProject.Resources.Strings.en-gb.resources" />
    <resgen input=".\Resources\Strings.es.resx" output="${build.dir}\es\MyProject.Resources.Strings.es.resources" />
    <resgen input=".\Resources\Strings.fr.resx" output="${build.dir}\fr\MyProject.Resources.Strings.fr.resources" />
    <resgen input=".\Resources\strings.ja.resx" output="${build.dir}\ja\MyProject.Resources.strings.ja.resources" />
    <resgen input=".\Resources\Strings.resx" output="${build.dir}\MyProject.Resources.Strings.resources" />
   
from:

      <arg value="/resource:${build.dir}\MyProject.Strings.de.resources" />
      <arg value="/resource:${build.dir}\MyProject.Strings.en-au.resources" />
      <arg value="/resource:${build.dir}\MyProject.Strings.en-gb.resources" />
      <arg value="/resource:${build.dir}\MyProject.Strings.es.resources" />
      <arg value="/resource:${build.dir}\MyProject.Strings.fr.resources" />
      <arg value="/resource:${build.dir}\MyProject.strings.ja.resources" />
      <arg value="/resource:${build.dir}\MyProject.Strings.resources" />

to:

<arg value="/resource:${build.dir}\MyProject.Resources.Strings.resources" />

<al output="${build.dir}\de\MyProject.resources.dll" target="lib" culture="de">
  <sources>
    <includes name="${build.dir}\de\MyProject.Resources.Strings.de.resources"/>
  </sources>
</al>
<al output="${build.dir}\en-au\MyProject.resources.dll" target="lib" culture="en-au">
  <sources>
    <includes name="${build.dir}\en-au\MyProject.Resources.Strings.en-au.resources"/>
  </sources>
</al>   
<al output="${build.dir}\en-gb\MyProject.resources.dll" target="lib" culture="en-gb">
  <sources>
    <includes name="${build.dir}\en-gb\MyProject.Resources.Strings.en-gb.resources"/>
  </sources>
</al>   
<al output="${build.dir}\es\MyProject.resources.dll" target="lib" culture="es">
  <sources>
    <includes name="${build.dir}\es\MyProject.Resources.Strings.es.resources"/>
  </sources>
</al>   
<al output="${build.dir}\fr\MyProject.resources.dll" target="lib" culture="fr">
  <sources>
    <includes name="${build.dir}\fr\MyProject.Resources.Strings.fr.resources"/>
  </sources>
</al>   
<al output="${build.dir}\ja\MyProject.resources.dll" target="lib" culture="ja">
  <sources>
    <includes name="${build.dir}\ja\MyProject.Resources.strings.ja.resources"/>
  </sources>
</al>

Is <al> supported by <solution> and not working in this case?

Thanks - Eric


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to