Friday, January 11, 2013

Making solutions for SharePoint 2010 in VS 2010 work in SharePoint 2013

Hi All,

We all know that in SharePoint 2013, the SharePoint Root was renamed to 15 hive. Microsoft has been doing this for every new SharePoint release. For instance, in MOSS 2007, it was called as 12 hive and in SharePoint 2010, its called as 14 hive.

Now, we have a Visual Studio project that was created for SharePoint 2010. When we try to deploy this solution on SharePoint 2013, all files targeted to sit in SharePoint Root was actually copied to 14 hive instead of copying in 15 hive.

The reason for this is in solution's manifest file, we have an attribute for <Solution> tag called as SharePointProductVersion which was set to 14.0. This is the reason for the files to be copied to 14 hive.

Now, to make the solution work for SharePoint 2013, we just need to change version from 14.0 to 15.0.

Hope this helps someone out there. Cheers!

No comments:

Post a Comment