Hi Gert, Thank you very much for your quick response! Unfortunally I can't send the project, so I tried to create a solution having some projects inside referencing one to another. Strangely Nant has no problem compiling the dummy solution, even though I do not see any difference from our "Main" project. I'll continue trying to reproduce the problem with the dummy solution and send it to you as soon as I succeed.
Thanks again! Meik PS. Yes, I'm using the latest build of nant (11/Jul) -----Original Message----- From: Gert Driesen [mailto:[EMAIL PROTECTED] Sent: terça-feira, 13 de Julho de 2004 10:45 To: Meik Schuetz; [EMAIL PROTECTED] Subject: Re: [Nant-users] Project with GUID 'xxx' must be included for the build to work error Meik, If you allow to share the project (and its sources) with us, please send us a zip file containing the minimum set of files necessary to reproduce it. Gert PS. You are using a recent nightly build of NAnt, right ? If not, please try the latest nightly build : http://nant.sourceforge.net/nightly/builds. ----- Original Message ----- From: "Meik Schuetz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 13, 2004 11:30 AM Subject: RE: [Nant-users] Project with GUID 'xxx' must be included for the build to work error Hello all, Before I begin, I have to confess that I only started working with Nant some days ago and I'm pretty unsure about how it works and what its possibilities are. However, I encountered a problem that keeps me away from continuing implementing Nant and further learning; I already looked up the mail-archive and notices that I'm not alone having this issue: Project with GUID '{737B3135-069E-4C5B-9615-7E641EB3F5A3}' must be included for the build to work. I tried to lookup the GUID in all source folders, but no luck; I compared the GUID's of the referenced project with the project file that references it and it does match, but still, it is different from the GUID Nant is complaining. Is there something that I can do? Kind regards Meik -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Castro, Edwin Gabriel (Firing Systems Engr.) Sent: sexta-feira, 9 de Julho de 2004 20:30 To: [EMAIL PROTECTED] Subject: RE: [Nant-users] Project with GUID 'xxx' must be included for the build to work error I don't think the problem is with NAnt. I think it's with Visual Studio. There is a comment on line 554 of Solution.cs that checks that project GUIDs match GUIDs in the solution file. This would be a place where my build would die but it doesn't. It dies earlier. The fact that the build dies earlier is unfortunate because I don't get the warning that says that there is some corruption in the solution and project files. I traced my build in the Visual Studio debugger and found that I'm getting an exception on line 46 of VcConfiguration.cs that tries to find the project directory. The problem here (which might be fixed in a newer NAnt nightly build) is that the code uses the project GUID to check in the solution. The exception occurs because the GUID in the project file does not match the GUID in the solution file. In my case, the project was created in its own personal solution. The project was later added to the "master" solution. I *think* that Visual Studio simply created a new GUID when the project was added to the master solution instead of using the one in the project file. I have also encountered problems when the project file does not have a GUID. I think this problem is due to Visual Studio upgrades and its conversion utility. Both cases can be considered "solution and project file corruption" caused by Visual Studio. I'm fairly certain that we did not manually corrupt the files because my team does not touch the files manually. I'm a little more daring and I look in them, but I still don't change any of the contents. I think a tool that could read these files and build a dependency graph between solution and project files could be really useful. Such a tool could then change the GUID of a project and automatically change the GUID in the solutions that depend on that project. My master solution has 38 projects and each project is in at least one other solution. A dependency tool like the one I described above would be really useful to me... Perhaps I might try to write such a tool at some point. Until then, we will need to fix our project and solution files by hand. I think Visual Studio does not use the GUIDs internally and that is why I can still use my solutions and projects find in Visual Studio. My suggestion to anyone encountering an exception about GUIDs when using the <solution> task is that you verify that the GUIDs match in the solution and project files for the solution and projects you are trying to build. The references to source are from the following nightly build: NAnt 0.85 (Build 0.85.1606.0; net-1.0.win32; nightly; 5/25/2004). I know it's old, but the examples show what I'm trying to say... Gert, I find it difficult to reproduce the issues I see without sending you our code. I can't send the code since it is not open source. I might be able to "clone" the situation by copying all the files and changing names, file paths, etc. to names that are non-descript and make sure that the source files are "empty". This process could take some time so I want to know how much help this would really be. I don't want to go through it if it really won't help NAnt developers. Perhaps the Docs for the <solution> task could mention the possibility of solution/project file corruption especially as it pertains to GUIDs. That way users can at least have a warning about this potential problem... -- Edwin G. Castro [EMAIL PROTECTED] > -----Original Message----- > From: Gert Driesen [mailto:[EMAIL PROTECTED] > Sent: Friday, July 02, 2004 4:11 PM > To: Castro, Edwin Gabriel (Firing Systems Engr.); Brian Yeo; > [EMAIL PROTECTED] > Subject: Re: [Nant-users] Project with GUID 'xxx' must be > included for the build to work error > > Castro, > > It would be great if you could submit a bug report for this > containing the absolute minimum set of files necessary to > reproduce this issue ? > > Thanks ! > > Gert > > ----- Original Message ----- > From: "Castro, Edwin Gabriel (Firing Systems Engr.)" <[EMAIL PROTECTED]> > To: "Gert Driesen" <[EMAIL PROTECTED]>; "Brian Yeo" > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, July 02, 2004 9:46 PM > Subject: RE: [Nant-users] Project with GUID 'xxx' must be > included for the build to work error > > > Hi Gert, Brian, > > I've had this problem come up when I tried to build some C++ > projects I have. The projects have been upgraded from Visual > Studio 6 and I thought that could be part of the problem. > From what I can tell a project specified in the solution file > has a different GUID than the GUID specified in the project file. > > I have not been able to determine under what conditions > Visual Studio generates different GUIDs but I think it may be > related to when you add an existing project. I think that if > you create a project under a particular solution (A) and then > try to add that project to a different solution (B) then > Visual Studio creates a new GUID for solution B and never > changes the GUID in the project or in solution A. Anyway, > that's my hypothesis. > > I've also run across situations where a GUID exists in the > solution file but the project file does not have a GUID. This > issue, I think, is related to the format conversion required > when you upgrade Visual Studio. > > One way I fixed all this was to open the appropriate files in > a text editor and make sure that all GUIDs matched! In my > case I have a solution with 38 projects and almost each of > those projects where created in their own separate solution > and added to the big solution afterwards. That's a lot of > files to check... Much easier in my case to run devenv! > > In the end this problem, I think, is related to behavior in > Visual Studio and I'm not sure that Nant is at fault here. > Then again, I don't know what Nant should do about it, if anything. > > -- > Edwin G. Castro > [EMAIL PROTECTED] > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:nant-users- > > [EMAIL PROTECTED] On Behalf Of Gert Driesen > > Sent: Friday, July 02, 2004 12:31 PM > > To: Brian Yeo; [EMAIL PROTECTED] > > Subject: Re: [Nant-users] Project with GUID 'xxx' must be > included for > the > > build to work error > > > > Brian, > > > > Can you package up a zip file containing the minimum set of files > necessary > > to reproduce this issue ? > > > > Thanks, > > > > Gert > > > > ----- Original Message ----- > > From: "Brian Yeo" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, June 18, 2004 3:39 AM > > Subject: [Nant-users] Project with GUID 'xxx' must be > included for the > build > > to work error > > > > > > > > > > Hi, > > > I am getting a message stating that a project must be included for > the > > build > > > to work. Does anyone have an answer to this?. > > > > > > <target name="Build-Ent-APAB" description="Build-Ent-APAB"> <echo > > > message="Build-Ent-APAB"/> > > > <solution configuration="${release.state}" > > > outputdir="${drive}\${src.path.apab}\bin\${release.state}" > > > failonerror="${failonerr}"> > > > <projects> > > > <includes > name="${drive}\${src.path.apab}\*.csproj" /> > > > </projects> > > > <referenceprojects> > > > <includes > > > name="${drive}\${src.path.common}\${PTA.Ent.Common}\*.csproj" /> > > > </referenceprojects> <assemblyfolders> > > > <includes name="${drive}\${src.bin.ent}" /> </assemblyfolders> > > > </solution> > > > The message is: Project with GUID > '{79F1FE34-BCF0-45F1-ACAE-3AF429CB364D}' > > > must be included for the build to work.: > > > > > > Regards, > > > > > > Brian Yeo > > > > > > _________________________________________________________________ > > > Get a Credit Card - 60 sec online response: > > > > > > http://ad.au.doubleclick.net/clk;8097459;9106288;b?http://www. > anz.com/au > s/pr > > omo/qantas5000ninemsn > > > [AU only] > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > > > Learn from the experts at JavaOne(SM), Sun's Worldwide Java > Developer > > > Conference, June 28 - July 1 at the Moscone Center in San > Francisco, > CA > > > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > NWMGYKND > > > _______________________________________________ > > > Nant-users mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/nant-users > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by Black Hat Briefings & Training. > > Attend Black Hat Briefings & Training, Las Vegas July 24-29 > - digital > > self defense, top technical experts, no vendor pitches, unmatched > > networking opportunities. Visit www.blackhat.com > > _______________________________________________ > > Nant-users mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/nant-users > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor > pitches, unmatched networking opportunities. Visit > www.blackhat.com _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users