My
choice has been not to use PostBuild steps wherever possible. I don't like
them as they are opaque to the build process, especially when run within
NAnt. I always write targets in any NAnt build scripts to handle this sort
of post build processing. Reasons are:
- it's a lot easier to
manage,
- you can see what will be done by
reading the build file and only the build file,
- tracing errors becomes easier as
there is now only one point of failure (the NAnt script).
I know
this doesn't really answer your question, but I thought it worth bringing up as
a potential discussion point.
Mark
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Pillai, Gishu R (GE Energy)
Sent: 26 September 2005 11:01
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Post-build events in .NET csproj causing build failuresHi,I was able to get to the root of this problem but I don't know the reason for this.The problem seems to be this.I have a simple copy command which copies a tlb (auto-generated) from the proj outputfolder to the common binaries folder. This is specified as a post-build event in the C#project file. When I build from the IDE everything is fine.Now in the case of my Nant-build file, it blows up saying source file for copy not found.The problem turned out to be different current foldersin each case (I added a cd command at the top).IDE Build - Post-build event default path/current folder
E:\CGC\RootBuild\Src\DA\GCDA\bin\DebugNant build - Post-build event default path/current folder
E:\GC\RootBuild\bin\debug - which is the common output folder for my binaries<solution configuration="${BuildConfig}" solutionfile="${SolutionFilePath}" verbose="false" outputdir="${OutputDir}">
^^^^^^^^^^
Any tips will help me get by CI server up and running :)
Thanks,Gishu Pillai
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.