I have the following package references
classlibrary1 references classlibrary2, classlibrary3 and classlibrary4
classlibrary2 references classlibrary2
classlibrary4 references classlibrary3
nuget pack -includereferencedprojects -verbosity detailed
An equivalent project (a project with the same global properties and tools version) is already present in the project collection, with the path "C:\Users\deepakv\Downloads\aspnetwebstack-859ceac12949\src\System.Web.WebPages\System.Web.WebPages.csproj". To load an equivalent into this project collection, unload this project first.
Actual:
What I found is that a project is not yet added to processed projects but has already been added to projectcollection when visited by the parent. which makes the condition to check if it already exists to fail.
Expected:
it should check the projectcollection before trying to add it.
Comments: Fixed. http://nuget.codeplex.com/SourceControl/changeset/d8ac701bb05c