(Sent this to the admin mail id by mistake)

Ok this seems a bit like armtwisting - if you do this,
then you can't do that. But after 2 days of broken builds,
anything to see green :)

I removed the outputDir attribute and am almost near completion,
there Green CCTray icon! 

Thanks,
Gishu


-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 27, 2005 1:05 PM
To: Pillai, Gishu R (GE Energy); [EMAIL PROTECTED]
Subject: Re: [Nant-users] Post-build events in .NET csproj causing build
failures


Gishu,

I'd advise against explicitly setting the outputdir on the <solution> task,
which is the cause for your problem anyway.

If you do not set the "outputdir", then the behaviour of NAnt should match
that of VS.NET.

Gert

----- Original Message ----- 
From: "Pillai, Gishu R (GE Energy)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 27, 2005 7:12 AM
Subject: RE: [Nant-users] Post-build events in .NET csproj causing build
failures


All points taken, Mark. I knew that it's the right thing to do.
But I'm the only one on the team here to try NAnt. All the others (2 teams
across the earth)
use the IDE to build. That means that the file copy proc should run even in
that case. Hence the
post-build event.
I'm just trying to take the path of least resistance :)

Jokes apart, I don't see why NAnt can't handle this (I am shortsighted:)
since the IDE build
works I am assuming that NAnt needs a change.
Just prior to running the PostBuild batch, change the directory to the
project's bin\debug output dir.
Switch back if necessary. Currently it seems to be in the solution task's
outputdir attribute.

The file being copied is a tlb file (Register Com Interop = true in proj
settings), generated when the project
is built. However this file is not copied along with the binaries to the
configured project output dir for
some reason.

Gishu

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 8:16 PM
To: nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Post-build events in .NET csproj causing build
failures


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] 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
failures


Hi,
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 output
folder 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 folders
in 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\Debug

Nant 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




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to