Seth, This is now fixed in cvs.
Ray, can you verify whether the next nightly build does not cause any regressions for you ? Gert > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: donderdag 14 april 2005 14:28 > To: [EMAIL PROTECTED]; [email protected] > Subject: RE: [Nant-users] Post-Build event failing using > $(OutDir) macro with C++ project and Solution task > > I have attached a simple reproduction VS.NET 2003 project (zipped) for > the described problem (first email; below). This is solution contains > one C++ project (with no real code) and has only a post-build > event that > looks like the following: > > @echo off > mkdir $(ProjectDir)NAntCopy > copy $(ProjectDir)$(OutDir) $(ProjectDir)NAntCopy > > The NAnt build script itself is very simple and only contains one > target. You should see from the output in NAnt the following: > > [solution] Performing Post-Build Event... > The filename, directory name, or volume label syntax is incorrect. > [solution] [post-build] > C:\dev\NAntOutdir\C:\dev\NAntOutdir\Debug\*.exe > [solution] [post-build] 0 file(s) copied. > [solution] [post-build] Project error: A tool returned an error code > from > the build event > [solution] Post-Build failed with exit code = 1 > [solution] Project 'NAntOutdir' failed! > > > Please note this problem was last tested with the April 14th build (at > about 8:25am EST), which I'm pretty sure is the latest and greatest. > ^_^ > > Thanks, > > --Seth > > -----Original Message----- > From: Gert Driesen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 12:30 PM > To: Seth Jeacopello; [email protected] > Subject: RE: [Nant-users] Post-Build event failing using > $(OutDir) macro > with C++ project and Solution task > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > [EMAIL PROTECTED] > > Sent: maandag 11 april 2005 15:47 > > To: [email protected] > > Subject: [Nant-users] Post-Build event failing using > > $(OutDir) macro with C++ project and Solution task > > > > Hello, > > I have been using NAnt with various projects for the past year > > or so and have now run into a problem involving C++ projects with > > post-build events not working properly with the solution task. > > > > The setup: A solution with 59 C# project, one J# project and one C++ > > project. Compiles and Post-Build events work fine in the > > IDE, however, > > with NAnt 0.85 RC2 we get problems... > > > > The problem: The C++ (and only the C++) project's post-build > > event does > > not work correctly with the $(OutDir) macro. I have the following > > statement: copy $(ProjectDir)$(OutDir)\$(TargetFileName) > > $(SolutionDir)bin\$(OutDir) /y > > and when run within the IDE, it works fine. However, when this > > statement is run via NAnt, it is executed as the following: > > copy C:\source\project\C:\source\project\Debug\project.dll > > C:\source\bin\C:\source\project\Debug /y > > > > If I change $(OutDir) to $(IntDir), everything just works. > > > > If I run this from the IDE, the output is as follows: > > copy C:\source\project\Debug\project.dll C:\source\bin\Debug\ /y > > > > This, of course, also works. What it appears to me is that for some > > reason, $(OutDir) is having the projects working directory > > pre-pended to > > it when used by NAnt (the IDE shows the OutDir macro as > "Debug", while > > NAnt appears to be using OutDir as "C:\source\project\Debug"). > > > > Also note that all of the C# projects are using nearly identical > > post-build scripts (using the OutDir macro) and they work > > fine, this is > > only an issue for this one C++ project. > > > > Any ideas? For now I can work around this by using the > > $(IntDir) macro, > > however, if one day the directory for the intermediate files > > changes for > > any reason, the script will break. > > Are you explicitly setting an output directory on the <solution> task > using > the "outputdir" attribute ? > > If not, then please provide a small repro for this issue. > > Thanks ! > > Gert > > > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
