> Can you provide a small repro for this issue ?

Gyaaaghh!!!

Ok, I figured out how to output stuff from the build event (echo command, just like 
DOS) and found out where it was going wrong.

The build event looks like this:

copy "$(ProjectDir)ServerUnitTesting.dll.config" 
"$(ProjectDir)\$(OutDir)ServerUnitTesting.dll.config"

Ok, fair enough, it was copying the .config file into the application's build 
directory.  This is all good.  But my build file redirects the output to 
x:\out\puffin\bin, so the actual path looks like this:

x:\Source Code\puffin2\Server\ServerUnitTesting\\x:\out\puffin\bin\

No wonder it thinks the path is freaky.

I could change the build event to this:

copy "$(ProjectDir)ServerUnitTesting.dll.config" 
"$(ProjectDir)\$(OutDir)ServerUnitTesting.dll.config"

but then it fails building from VS.NET.

If you want, I could still get a sample project together, but there seems to be little 
point now that I've figured it out.  It looks like I won't be able to redirect my 
project output (which I was doing because it makes bringing all our projects into one 
build folder, ready for deployment).  Or I'll have to prohibit the use of build events 
in VS.NET.  

Seems like a fairly hefty oversight by MS, if you ask me.  $(OutDir) should evaluate 
to a full path.  Of course, we could change the path from the default of bin\debug\ 
but for every project???

Ok, any chance of being able to override the build events?

Thanks

**********************************************************************
Privileged/Confidential Information may be contained in this 
message. If you are not the addressee indicated in this 
message (or responsible for delivery of the message to such 
person), you must not copy, distribute or take any action in 
reliance to it.
In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately 
if you or your employer do not consent to Internet email for 
messages of this kind. Opinions, conclusions and other 
information in this message that do not relate to the official 
business of Minorplanet Systems Plc shall be understood as 
neither given nor endorsed by it.
**********************************************************************



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to