I have a custom vspackage and project template file has this ItemGroup:
<
ItemGroup><
Folder Include="Copylibs"/><
Folder Include="Stores"/><
Folder Include="DDModules"/></
ItemGroup>After I create a new project of my type the project file's ItemGroup now looks like this:
<ItemGroup>
<Folder Include="Copylibs" />
<Folder Include="Copylibs" />
<Folder Include="DDModules" />
<Folder Include="Stores" />
<Folder Include="DDModules" />
<Folder Include="Stores" />
</ItemGroup>
I tried backing out changes and commenting out lines I had changed, but the problem is still there. I'm not sure if I introduced this or if this is some kind of a bug in one of the CTP's. Has anyone seen this before, or have an idea what could be causing the problem
Thanks,
Mike

corrupt project file
Noah Khan
I'm using the March CTP, but I went back to a previous project built from Feb CTP, and it was there also. I'm not using one of the samples. This is our own custom package that we are building.
Thanks,
Mike
Eddie Smith
I am able to reproduce this with the IronPython project sample. I added these lines to the class library project file for IronPython:
<ItemGroup>
<Folder Include="testfolder" />
</ItemGroup>
I created a zip file and placed it in the ProjectTemplates directory under my projects directory so it would show up in My Templates. I than created a new class library project using this template and the resulting project file had the line duplicated.
<ItemGroup>
<Folder Include="testfolder" />
<Folder Include="testfolder" />
</ItemGroup>
Thanks,
Mike
Brian A
Michael,
Since you can reproduce this using the IronPython sample, please log a bug against us using the MSDN Product Feedback Center under the "Visual Studio SDK" product. This will ensure prompt attention to the issue and will get it into our bug tracking system.
I've also forwarded this thread to the VS SDK team and they are investigating.
Neil
madd
Mike,
What version of the VS SDK are you using, and what sample were you working with when you encountered this
Neil
AMSS
Michael,
It's tough for us to tell at this point what might be causing this without knowing more about how you are creating and populating the item group. Would you be able to share a code snippet with us for how you're doing this
Also, it's a dumb question, but you've double-checked that you don't have duplicate code somewhere creating these, or that you don't have some event or something firing twice that would cause double-generation
Neil