Friday, January 25, 2013

Packaging SharePoint 2013 Solutions in Visual Studio 2012

Hi All,

To generate wsp file in Visual Studio 2012, follow the below steps.

1. Right click on SharePoint 2013 solution
2. Select Publish option





















3. Select Publish to File System and provide target location to store wsp location


















4. Once Publish is clicked, wsp file will be generated in specified location.

Hope this helps.

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!