Assuming that the solution compiles successfully in VS.NET 2003, then you should make sure that your environment variables are set correctly. Read vsvars32.bat to see what needs to be set. I've found it very difficult to set environment variables within Nant so you will likely need to set them through explorer. There are three environment variables you will want to make sure are correct and those are LIB, INCLUDE, and PATH. The other environment variables in vsvars32.bat are there to create those three.
-- Edwin > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Robert Smith > Sent: Thursday, May 05, 2005 11:41 AM > To: nant-users@lists.sourceforge.net > Subject: [Nant-users] Building a non.NET C++ solution > > I was previously successfully building a Visual Studio 6 C++ > project using the <exec> call out to MSDEV, but now the > developer has imported that Visual Studio 6 project into > Visual Studio.NET 2003. > > There is an .sln file and I'm trying to use the <solution> > task (since I can't use the VS6 MSDEV call any longer), > however I get compilation errors when I try to build via > command line, yet it builds fine within the client gui of > Visual Studio.NET 2003. > > The error I'm getting is: > > build: > > [solution] Starting solution build. > [solution] Building 'TT_IPL' [Debug] ... > [cl] Compiling 1 files to > 'C:\CCNet\Projects\TestTaker4.0\Source\Win\TestTaker\IPL\Debug'. > [cl] StdAfx.cpp > [cl] > c:\CCNet\Projects\TestTaker4.0\Source\Shared\IPL\StdAfx. > h(19) : fatal error C1083: Cannot open include file: > 'afxwin.h': No such file or directory > > BUILD FAILED - 2 non-fatal error(s), 0 warning(s) > > External Program Failed: cl (return code was 2) > > I'm getting this error is in spite of setting the path > environment variable to where the afxwin.h file is located > and in spite of adding the setenv task setting that path > within the .build file. > > Is it even possible for a non-dotNet C++ project that has > been imported to VisualStudio.NET 2003 be compiled with the > <solution> task? > > Would appreciate any insight. > > Thanks, > > Robert > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 > great events, 4 opportunities to win big! Highest score > wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. > Visit http://www.necitguy.com/?r > _______________________________________________ > Nant-users mailing list > Nant-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users