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.
Caution
|
|---|
|
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, change the Target Framework to .NET Framework 4.5.
-
In the Debug category of project properties, set the path to the Visual Studio 2012 version of devenv.exe.
-
In the project references, 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.11.0" xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.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.10.0"
with the following lines:
xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.11.0" xmlns:vs="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0" xmlns:vsfxim="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.Immutable.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:RssCommands.SetUrl to vsfxim:RssCommands.SetUrl.
-
Change sp:VSCommands.Browseto vsfxim:VSCommands.Browse.
-
-
Replace every instance of vsfx:VsBrushes keys with the appropriate vs:EnvironmentColors key. Here are some examples:
-
Change vsfx:VsBrushes.StartPageBackgroundKeyto vs:EnvironmentColors.StartPageTabBackgroundBrushKey.
-
Change vsfx:VsBrushes.StartPageSeparatorKey to vs:EnvironmentColors.StartPageSeparatorBrushKey.
-
-
-
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/.
-
-
Update all colors to the appropriate values of T:Microsoft.VisualStudio.PlatformUI.EnvironmentColors.
Caution