The environment that vcvars32.bat sets up goes away as soon as the exec call
is completred. It isn't available in the next call.
 
Run vcvars32.bat betore you call nant.
 

-----Original Message-----
From: Eric Fetzer [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 24, 2008 2:27 PM
To: Nant Users
Subject: [NAnt-users] psexec and NAnt


OK, I've got some strangeness here.  So I call NAnt from a different machine
using PSExec to call it.  On all but one of our apps that I build this way
(close to 100 total), all's cool.  This one, however, fails from psexec
where it succeeds directly from the command line.  The difference between
this project and all others is that this project has C++ projects in it.
The error is always something like:
 
[cl] Starting 'cl (@"C:\Documents and Settings\me\Local
Settings\Temp\tmp13AE.tmp" /EHsc /FR".\Release/" /W3 /Od /ZI /RTC1 /MT
/nologo)' in 'D:\MyBuildFolder\MyCPlusPlusProject'
 
When I build this at the command line, it would succeed with the only
difference being another folder like 14 or something under the Temp
directory.  I can reproduce this by trying to call the build from a regular
cmd.exe window.  So... I tried to add the following line to the build file:
 
  <exec program="C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat" timeout="30000" />
 
Same error.  Anyone with a clue?
 
Thanks,
Eric


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to