2011-02-25

Re-deployment errors when working with custom content types for SharePoint 2010 in Visual Studio 2010

I'm currently working on upgrading custom SharePoint 2007 solution packages implemented in Visual Studio 2008 and VSeWSS to SharePoint 2010 and Visual Studio 2010. I'm using VSeWSSImport as the tool for at least get most of the items converted automatically.

There are issues in the tool such as web part items are converted to modules, etc, but overall it's working ok.

The main issue I've been facing is a known bug in Visual Studio 2010 related to custom content types an redployment og solutions from within VS 2010. The annoying error I get is:

"Error occurred in deployment step 'Activate Features': The content type with Id '' defined in feature '{}' was found in the current site collection or in a subsite"

Microsoft have described a couple of work-arounds for this issue (KB2022443), but that was no help to me. Instead I'm using WSP Builder VS 2010 add-on, an manually deployment using Powershell - that always works!