How to: Upgrade a Visual Studio 2010 Start Page
You can upgrade a Visual Studio 2010 custom start page to Visual Studio 2012 by following the steps listed below.
Warning
The custom start page upgraded in this procedure is the one created with the Custom Start Page template on the Visual Studio Gallery. Your start page may have other features that need to be upgraded.
To upgrade a custom start page to Visual Studio 2012
You should have Visual Studio 2012 and the Visual Studio 2012 VSSDK installed. You can download the VSSDK from Microsoft Visual Studio 2012.
Open your custom template project in Visual Studio 2012. You will see a message notifying you that the project is to be upgraded. Click OK and wait for the upgrade to complete.
In the project properties for both the start page project and the control project, change the Target Framework to .NET Framework 4.5.
In the Debug category of the project properties for the start page project, set the path to the Visual Studio 2012 version of devenv.exe.
In the project references for both projects, remove the references to Microsoft.VisualStudio.StartPage and Microsoft.VisualStudio.Shell.10.0, and add references to Microsoft.VisualStudio.Shell.11.0 and Microsoft.VisualStudio.Shell.Immutable.11.0.
Open StartPage.xaml with the XML editor and make the following changes:
Update the namespaces. Replace the following lines:
xmlns:sp="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.StartPage" xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0" xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
with the following lines:
xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.11.0" xmlns:vsfxim="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.Immutable.11.0" xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.11.0"
Replace every instance of Microsoft.VisualStudio.Shell.StartPage with Microsoft.VisualStudio.Shell.11.0.
Make the corresponding namespace readjustments from Microsoft.VisualStudio.StartPage to Microsoft.VisualStudio.Shell.11.0 (sp to vs). For example:
- Change the namespace of the MruListBox from sp:MruListBox to vs:MruListBox.
Change the namespace of the VSCommands from sp to vsfxim. For example:
Change sp:VSCommands.ExecuteCommand to vsfxim:VSCommands.ExecuteCommand.
Change sp:VSCommands.Browseto vsfxim:VSCommands.Browse.
Change sp:RssCommands.SetUrl to vsfxim:RssCommands.SetUrl.
Replace every instance of vsfx:VsBrushes keys with the appropriate vs:EnvironmentColors key. Here are some examples:
Change vsfx:VsBrushes.StartPageBackgroundKey to vs:EnvironmentColors.StartPageTabBackgroundBrushKey.
Change vsfx:VsBrushes.StartPageSeparatorKey to vs:EnvironmentColors.StartPageSeparatorBrushKey.
Update all other colors to the appropriate values of EnvironmentColors.
Change the following paths:
Change component/Styles/startpageresources.xaml to component/UI/Styles/startpageresources.xaml"
Change all instances of component/Images/StartPage/ to component/UI/Images/.
Open MyControl.xaml, and change the namespace reference xmlns:vs="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0" to xmlns:vs="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.11.0" .