Hi Gert / Ray

 

I have been able to trace the issue related to VS.Net post-build events.

 

I have following post build event command line in my C# project:

XCOPY /y/i $(ProjectDir)*.cs $(ProjectDir)bin\$(ConfigurationName)\

 

It should copy all the source files to compilation output folder. I do not intend to do this in real; this is just for debugging the issue. When I run the build for this project from CruiseControl.Net windows service, post-build event does not copy the files. I do find the PostBuildEvent.bat file in the folder and if I double click, it copies the files.

 

Also if I run Nant build script separately (not through CCNet) the files are copied as expected.

 

There seems some problem with having XCOPY in the post build event and running Nant through CCNET. If I replace XCOPY with COPY in my post build event, everything works fine.

The same behavior is shown with the pre-build event also (Same case, NAnt, CCNet, XCOPY)

 

Please let me know if someone has experienced it in this scenario. If this is NAnt bug, where do I submit it? I am using CruiseControl.NET 0.9 (tried with 0.8 also) and NAnt 0.85 Release Candidate 2

 

Thanks for your help.

 

Regards,

Sandeep


From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 9:04 PM
To: [EMAIL PROTECTED]; Sandeep; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Post-build event problem with solution task

 

Ray,

 

Relative paths should work too. If you have stil have issues with this, then please submit a bug report.

 

Gert

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ray Johnson
Sent: vrijdag 1 april 2005 6:28
To: 'Sandeep'; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Post-build event problem with solution task

 

Are you using relative paths in your commands?  We had problems when we did that.  Try basing it off a macro so it has an absolute path.  Of course, changing the "copy" to an "echo" will help you debug the problem...

 

ray

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep
Sent: Thursday, March 31, 2005 7:29 PM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Post-build event problem with solution task

Hi,

 

I am using VS.Net solution task to build a solution that contains 18-20 projects. Everything is working fine except that the post build event is not doing its job. NAnt log shows that post build event was successful however, when I see the bin folders there are no additional files are there (post build event copies some files to bin folder).

 

[solution] PostBuildEvent succeeded (exit code = 0)

 

I checked that PostBuildEvent.bat file is present in the bin folder and if I run that file myself, it copies the desired files.

 

Earlier, I tried post build event on a POC project (single project in a solution) and it worked fine with Nant.

 

Has anyone come across this issue? Please provide me some pointers as I am stuck at this point.

 

Thanks in Advance,

 

Regards,

Sandeep

 

Reply via email to