It's always nice to start a new project and if you've been working with legacy code for a while there's no better feeling! Unfortunately that feeling is often all too rare and we spend most of our time dealing with existing code with a long history.
All that legacy code is probably what's keeping you employed, so what you really want is to be able to open up that existing code in your shiny new copy of Visual Studio 2012 and bring the power of Visual Studio 2012 to bear on it, making life just that little bit easier for yourself.
One of the big changes in Visual Studio 2012 is that projects opened in Visual Studio 2012 are also backwards compatible with Visual Studio 2010 Service Pack 1 and we will see how that works. This process is called round tripping.
The good news for teams is that round tripping means they can gradually move from Visual Studio 2010 to Visual Studio 2012 as and when they are ready. They won't have the problems of the past where one team member checks in an upgraded solution file to source control, thus forcing the rest of the team to upgrade simply to continue working.
If you don't have any existing code you want to use you can use the sample Visual Studio 2010 solution we've prepared for you.
If you are going to use some of your existing code, ensure that the current code is in source control or that you have backed up the code.
In order to see the backwards compatibility in action you will need Visual Studio 2010 with Service Pack 1 installed on your machine.
VS2010_Web
solution to start the conversion process.Default.aspx
file in the VS2010_Web
project and change the Welcome to ASP.NET! text on the page to Welcome to Visual Studio 2012!.VS2010_Web
solution and run the application.The Visual Studio team worked with the various language and development product teams to ensure that project file formats would work consistently between Visual Studio 2010 and Visual Studio 2012. The first stage of these changes rolled out publicly with the release of Service Pack 1 for Visual Studio 2010, allowing Visual Studio 2010 to understand the new project formats.
When Visual Studio 2012 opens a Visual Studio 2010 project it will automatically upgrade the project format unless those changes will affect the ability to open the project in Visual Studio 2010. Any compatibility breaking changes will cause a dialog to be shown describing the changes and you can decide what action to take.
Not all project types will work with round tripping.
Visual Studio database projects aren't supported for round tripping. Visual Studio 2012 obsoleted Visual Studio database projects and replaced them with the new SQL Server Data Tools (SSDT) projects. When you open an old database project in Visual Studio 2012 you can upgrade it to an SSDT project. This project format also supports round tripping. However, if you wish to open an SSDT project in Visual Studio 2010 you will need to install the SQL Server Data Tools separately. You can download the tools from http://msdn.microsoft.com/en-us/data/hh297027.
Visual Studio 2012 ships with support for both ASP.NET MVC 3 and ASP.NET MVC 4 projects. ASP.NET MVC 2 projects are not supported for round tripping in Visual Studio 2012 and therefore you will need to upgrade your MVC 2 projects to MVC 3 projects before opening them in Visual Studio 2012.
To help with the upgrade process you can use the ASP.NET MVC 3 Application Upgrader available from the ASP.NET Codeplex site at http://aspnet.codeplex.com/releases/view/59008.
In a similar manner to ASP.NET MVC 2 projects, Silverlight 3 projects and prior will not be supported for round tripping with Visual Studio 2012. You will need to upgrade these projects to a later version of Silverlight first.
Visual Studio 2012 supports both Silverlight 4 and Silverlight 5 projects and you will be prompted for the version of Silverlight to use when you create a new project.
3.147.47.144