March 25, 2014

SharePoint 2010 to SharePoint 2013 Migration : Part 2

:: SharePoint 2010 to SharePoint 2013 Migration : Part 2 ::

Hello


Continue for SharePoint 2010 to SharePoint 2013,

Part 2 :: Custom Code Migration to VS 2013


After migrating database of SharePoint 2010 to SharePoint 2013, if there is custom code for SharePoint 2010 then we can deply the wsp as is, but if any changes in the code then it is hard to maintain two enviornment of SharePoint, so it is better to upgrade the code to VS 2013.

Here are the steps to be consider for upgrading custom code,

1) Install VS 2013

2) Copy Solutions built in VS 2010. On SharePoint 2013.

3) Run the VS 2013 with Admin Credentials

4) Open the Solution in VS 2013, which will ask for upgrade, if solution is upgraded then it cannot be used for VS 2010, so always make copy of code.

5) After code is upgraded it will show the Upgrade reports.

6) Open the .csproj files in Solutions for all projects, and replace

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> with <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
 
7) Open the Packages present in the Solutions, and change the SharePoint Product Version to 15.0






8) Change the Microsoft.SharePoint Reference in non-SharePoint project,

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.dll

9) Add other third party reference used in code.

10) Change the Assembly version of SharePoint DLL as, 14.0.0.0 to 15.0.0.0
Assembly="Microsoft.SharePoint, Version=15.0.0.0,

11) Now if anything /_layouts/ or /_CONTROLTEMPLATES/ used in code change it to /_layouts/15/ or /_CONTROLTEMPLATES/15/ which will deploy the related files in 15 hive... 


12) Now build the solution and if any missing reference then add the reference and solution is ready for deployment.

No comments: