Title: Compiling VC++ 6 Project
I don't build VS 6 projects in NAnt at all.  I build them via command line (msdev.exe).  Note that issues you run into involve environment variables such as the %PATH%, %INCLUDE%, %LIB%, %VCINSTALLDIR%, MSVCDir, MSDevDir, any Framework* environment variables, etc.

There should be batch files that set up your environment variables for VS 6, VS2003, and VS2005.  What I do is grab a copy of the original values for PATH, LIB, and INCLUDE.  Then when I'm ready to build a VS 6 project, I call that batch file, do the build, then re-set all the environment variables back to it's original version.  Then, once the build is done, the batch file re-sets the environment variables back to their original values.  If you don't do that, eventually your PATH/LIB/INCLUDE gets too big and messy and starts to behave weirdly.

Currently I only build VS2003 projects/solutions via NAnt, and do msdev for VS 6, and devenv's for 2005 projects (I have a product that has code in all three VisualStudio versions and in VB, VC++, and C#).
 
Marc Towersap
Sr. SCM Engineer


----- Original Message ----
From: "Foster, Richard - PAL" <[EMAIL PROTECTED]>
To: Darren Gage <[EMAIL PROTECTED]>; nant-users@lists.sourceforge.net
Sent: Monday, June 26, 2006 7:08:44 AM
Subject: Re: [NAnt-users] Compiling VC++ 6 Project

Darren,
 
Since you're using Visual Studio 6, you'll probably need to go the <exec> route (unless there is a legacy C++ task available in nantcontrib - I haven't looked). I suggest getting the build working from the command line before trying to automate it using NAnt.
 
A quick look at the help documentation for VS6 suggests you should probably be calling msdev, not devenv.
 
Hope this helps,
Regards,
Richard


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darren Gage
Sent: Sunday, June 25, 2006 18:28
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Compiling VC++ 6 Project

Hi,

Can anyone tell me the easiest way to compile a VC++ 6.0 Project.

I.e. using Visual Studio project file, StructuredPrototype1.dsp

I've tried:

1 - using  devenv.  But this gives me message dialog  stating "Projects generated by a previous version of Visual C++ and cannot be loaded or converted by Visual Studio 6.0", even though the project can be opened and compiled using Visual Studio 6.0.

2-  Using either MSBUILD or VCBuild I get "error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.".

3 - Compiling using the <cl> task fails because the compile order is not maintained.

thanks

Darren

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to