Fixing Broken Project Items in SharePoint 2013 Visual Studio 2012 Solution

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

If you are reading this, you are most likely having issues with Visual Studio Upgrading your project item *.csproj file when collaborating with other developers. Your solution is either not loading or causing merging issues when working with tools like GIT.

The reason is different ProjectTypesGuids between SharePoint 2010 and 2013 solutions. It may look like a 2013 project item but you should double check the values in these sections:

<TargetOfficeVersion>15.0</TargetOfficeVersion>

<ProjectTypeGuids>{C1CDDADD-2546-481F-9697-4EA41081F2FC};{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}

If you have this infamous GUID (SharePoint 14):

{BB1F664B-9266-4fd6-B973-E1E44974B511}

replace it with this one:

GUID (SharePoint 15)

{C1CDDADD-2546-481F-9697-4EA41081F2FC}

The change above should get your project to load and compile but to avoid this compatibility issue you should install the Microsoft Office Developer Tools for Visual Studio 2012. You can get this pack using Microsoft’s Web Plataform Installer and then searching for ‘SharePoint’. Once this is installed VS should generate┬áthe right GUID

 

 

 

 

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather
Posted in SharePoint

Leave a Reply

Your email address will not be published. Required fields are marked *

*