While working with SharePoint 2010 environment, we tend to build many farm based solutions according to the needs of our application. These may contain farm level feature, site collection level feature, web parts, custom list definition and stuff like that.
In order to convert our complete web applications to SharePoint 2013 environment, for sure we need to update all our solution to the recent SharePoint 2013 environment. There are many things that need to be considered there. Let’s look at some of these:
Surely the first step would be to transform or solution from Visual Studio 2010 to Visual Studio 2012. May be you already has your solution on VS 2012, in that case, this step can be ignored and skipped. If no then just follow the wizards to transform our solution to VS 2012. There may be some warnings or error that need to be removed to complete this transfer from VS 2010 to VS 2012.
In this step, we have to make sure that we have all the required developer tools installed for SharePoint. Launch the web platform installer and search for SharePoint the new developer tools should show up in the search like shown below. Install it as it will be very much the must thing to have before the start.
The second most important step will be to transform all the assembly references from .Net 3.5 to .Net 4 and above. Most important assemblies would be Microsoft.BusinessData.dll, Microsoft.Office.Server.dll, Microsoft.Office.Server.dll, and Microsoft.SharePoint.ApplicationPages.dll just to name a few. The following steps overall has to be followed:
If the solution is from a source control, check out complete solution
Then change the project’s target platform from 3.5 to 4.5, this will be done by opening up .sln file and changing the target framework to 4.5 from 3.5 manually
In the post scripts if there is a script for assembly registration, point it to the correct version of gacutil
Now an error will be prompted that the App pool cannot be recycled, this will be there as the user has to be added as db_owner of the web application
Once all the above is done, the solution would be upgraded successfully.
In a nutshell it involves certain steps that can make it happen but it is not a very lengthy process and understanding of the updates in any API calls before his activity can surely make this whole process faster.
This blog was first published by Usman here. For more informative content from Usman check out his blog>>
If you have any questions or feedback on Usman’s article please leave a comment below. We would love to hear from you.
For more content on SharePoint 2013 why not check out Alan Richards eBook on ‘SharePoint 2013 Installation Step by Step’. Download eBook now>>
About the Author:
Usman Akram is an experienced IT Professional with over 10 years experience in Microsoft technologies especially SharePoint. Usman has delivered several large and complex projects including integration of SharePoint with BizTalk and with Dynamics CRM. Other then SharePoint Usman has also managed a BigData analytic project (HDInsight/Hadoop).