Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Reference
 /Upgrade
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio 
/Upgrade (devenv.exe) 

Updates the solution file and all of its project files, or the project file specified, to the current Visual Studio 2005 formats for these files. 

devenv SolutionFile | ProjectFile /upgrade
SolutionFile

Required if you are upgrading an entire solution and its projects. The path and name of a solution file. You can enter just the name of the solution file, or a full path and the name of the solution file. If the folder or file named does not yet exist, it will be created.

ProjectFile

Required if you are upgrading a single project. The path and name of a project file within the solution. You can enter just the name of the project file, or a full path and the name of the project file. If the folder or file named does not yet exist, it will be created.

Backups are automatically created and copied to a directory named Backup that is created in the current directory.

Source-controlled solutions or projects must be checked out before they can be upgraded.

Using the /upgrade switch does not start Visual Studio. Results of the upgrade can be seen in the Upgrade Report for the development language of the solution or project. No error or usage info is returned. For more information on upgrading projects in Visual Studio, see Visual Studio Conversion Wizard.

This example upgrades a solution file named "MyProject.sln" in your default folder for Visual Studio solutions.

devenv "MyProject.sln" /upgrade
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker