Charles, I have a very similar scenario as you. I have 37 projects I need to build and most of them (36) are COM projects from an earlier version Visual Studio (I don't know which one). I first thought the <solution> task would be the answer to my prayers but it doesn't support VC++ very well yet! Second, since my projects have been converted a number of times (each time a new version of Visual Studio came out) some of the projects and solutions were out of sync. I noticed that each solution file assigns a GUID to each project and each project file also has its own GUID. Well, when the projects are added to a new solution (as existing projects) the GUIDs may not match up anymore... What's worse is that some project files didn't even have a GUID since the project files had been converted also and apparently VS.NET doesn't care whether the project files have them or not... Unfortunately, NAnt cares very much since it uses the GUIDs to identify the projects and track dependencies. All of these problems made it difficult for me to use NAnt... In the end I decided to simply use the <exec> task to call devenv.com and build each of my solutions that way. That allows me to use the NAnt build process to build my solutions in a Continuous Integration process (I'm using CruiseControl.NET). I suspect that you could use a similar approach to build your projects, but that means that you will need the appropriate Visual Studio (or equivalent environment) to build your projects. You might be able to convert your VC++ 6.0 projects to ".NET projects". They will still be unmanaged code as normal, but they won't compile under the old environments... Then again, I've never done a conversion from version 6.0 to .NET so I can't confirm that it's possible (although, my intuition tells me it is).
-- Edwin G. Castro Firing Systems Engineer [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian MacLean Sent: Friday, April 16, 2004 8:04 PM To: NAnt Users List (E-mail); [EMAIL PROTECTED] Subject: [Nant-users] [Fwd: build combination project] Hi Charles, I'm forwarding your mail on to the nant-users list in case others have some input. NAnt does not target visual c++ 6.0 projects directly, however you could use a combination of the cl, midl, link tasks to build those projects. You would need to call VCVARS32.bat first to ensure that the 6.0 versions of the c++ tools are used. I'm still thinking thru your other questions. Let me get back to you - or others may have the answers ready. Ian -------- Original Message -------- Subject: build combination project Date: Fri, 16 Apr 2004 12:57:29 -0700 From: charles <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Dear Ian MacLean: I'm current developing a big project which has different platforms. My project has around 70 subprojects. Some are developed by C# .NET, some are developed by Visual C++ 6.0, and some are developed by C++ .NET. Some projects are developed by ASP .NET web service in C#. Some projects are developed by ASP.NET Web application in C#. I really like NANT and want to use NANT to build all of them. Here is my question: 1: Can I use NANT to build Visual C++ 6.0 project? Should I install Visual studio 6.0 and SDK package on build machine? I saw your help file and it seems that it support VC++ 6.0. But I can't find more detail information. What requirement if it supports? 2: For C# normal project. I can use nant to build. How about C++ .NET.? Each project has lots of references. How to handle it.? It's very easy for me to build project without reference. But I don't know how to build project with references. 3: How to build ASP.NET web service and application? In project, there has web reference. How to build it.? I appreciate your help and thank you so much! Look forward to your help! Charles -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users