Title: Message
 
 
Thank you for the quick reply,
I've tried that though, it's still naming them based on the file name (though the prefix is now there)
 
Still has ASPX in the file name as well of course, where as the SOLUTION ones don't.
that I can handle with an external batch file.
 
I can name all my classes to match the file names, that would be a work around, but I'd rather not impose that restriction on my developers.
(not to mention this external batch rename would still have to be there to remove the ".aspx" portion of the file name.)
 
I must be doing something wrong somewhere.  Perhaps I'm misusing the dynamicprefix setting.
 
pasted in below find my very simple default.build (edited for brevity to just the offending pieces)
 
 
stats:
NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net
 
 
 
<project>
<target name="debug" depends="RenameResources">
<solution configuration="debug" solutionfile="MPSol.Dev.All.sln">
 <webmap>
  <map url=""http://localhost/MPWeb.Presentation/MPWeb.Presentation.vbproj">http://localhost/MPWeb.Presentation/MPWeb.Presentation.vbproj" path="..\..\MPweb.Presentation\MPWeb.Presentation.vbproj"/>
 </webmap>
</solution>
</target>
<target name="DebugResource">
 <resgen todir="C:\DevMyPay\MPWeb.Presentation\Obj\Debug"><!-- timeout="1"-->
  <resources prefix="MPWeb.Presentation" dynamicprefix="true">
   <include name="C:\DevMyPay\MPWeb.Presentation\*.resx" />
  </resources>
 </resgen>
</target>
<target name="RenameResources" depends="DebugResource">
 <exec program="C:\DevMyPay\MPWeb.Presentation\Obj\Debug\rr.bat">
 </exec>
</target>
</project>
 
 



-----Original Message-----
From: Craig Ducharme [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 10:05 AM
To: Hogg, Russell E.; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] RESGEN and SOLUTIONS - newby confusion.

Russell,

 

Use the "dynamicprefix" and "prefix" parameters on the resources element to mimic the behavior of the SOLUTION task.

 

            http://nant.sourceforge.net/release/latest/help/tasks/resgen.html

 

Regards,

Craig


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hogg, Russell E.
Sent: Wednesday, June 22, 2005 6:17 AM
To: nant-users@lists.sourceforge.net
Cc: Hogg, Russell E.
Subject: [Nant-users] RESGEN and SOLUTIONS - newby confusion.

 



Having an issue with RESGEN task versus the SOLUTION task.

I found this related thread in the archive:

https://sourceforge.net/mailarchive/message.php?msg_id=10331059

But no more.

It seems that the RESGEN task is creating the resources files based on file name while the SOLUTION task uses the name of the CLASS contained within the file.

The post I referenced above is pretty dated, that leads me to believe that I'm a knucklehead and not doing something right.

Either that or I'm searching on the wrong terms in the archive. 

Any help much appreciated.

-Russ (rookie)




-------------------------------
-- Even though this E-Mail has been scanned and found clean of
-- known viruses, OPM can not guarantee this message is virus free.
-------------------------------
-- This message was automatically generated.
-------------------------------oo

Reply via email to