It is possible to have duplicate guids, but only when one project was copied
by hand. Visual Studio would never do this on its own, and I suspect if one
tried to use project references in VS, it would choke, as it uses the guid
to identify the project.

COM theory has it that guids are unique to one object throughout the entire
universe, so Martin's proposed patch would be more in keeping with that
ethos.

Randy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
MacLean
Sent: Friday, January 16, 2004 1:32 PM
To: Martin Aliger
Cc: ! nant
Subject: Re: [nant-dev] SolutionTask

Is this the right patch ? if it is possible to have two valid projects with
an identical guid should we use a different key for the hash table
- perhaps a combination of the guid and the projectname ?

Ian

>Hi all,
>
>I found one very annoying feature/bug of <solution> task:
>
>Projects (.csproj) are loaded into hashtable regarding their guid. But 
>if two projects with same guid are loaded, no error/warning is issued 
>and one of those projects disappears! Such projects could be created by 
>copying and renaming existing project into another file. Create new 
>project with Visual Studio generate new guid, so propability to create 
>existing guid is negligible.
>
>
>Small patch to is attached. It checks this key violation rule and 
>throws BuildException when it found one.
>
>Regards,
>Martin
>  
>



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open
Tools Development and Integration See the breadth of Eclipse activity.
February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to