VS2012Logo

Upgrade SharePoint 2010 webpart solution to 2013

Open Visual Studio 2012. Go to File-Open-Project/Solution, locate the file you want to upgrade. (let it do the normal upgrade) Close the project and save changes. Open the *.csproj file in Notepad or some other type of text editor. Change the TargetFrameWorkVersion element from v3.5 to v4.5 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> Add the TargetOfficeVersion element below the TargetFrameworkVersion element <TargetOfficeVersion>15.0</TargetOfficeVersion> Save the file and open the project again in Visual Studio 2012…

InitializeControl

The name ‘InitializeControl’ does not exist in the current context

I’ve ran into this error several times now. The name ‘InitializeControl’ does not exist in the current context There have been several suggestions on how to fix this, some blogs say to create a new Visual Web Part in the Template folder and copy it back into the Web Part Project and a myriad of other mumbo jumbo. I discovered the cause of the problem by reading a connect.microsoft submission,…