Visual      Wednesday 13 July 2011
Studio
Command     devenv
Line Tool
                               Muthu Swamy S
Visual Studio Command Line Tool


Visual Studio Command Line
                    Usage:

                    devenv [solutionfile | projectfile | anyfile.ext] [switches]


The first argument for devenv is usually a solution file or project file.

You can also use any other file as the first argument if you want to have the file open automatically in an
editor. When you enter a project file, the IDE looks for an .sln file with the same base name as the
project file in the parent directory for the project file. If no such .sln file exists, then the IDE looks for a
single .sln file that references the project. If no such single .sln file exists, then the IDE creates an
unsaved solution with a default .sln file name that has the same base name as the project file.

    1. Build                                                    12.Rebuild
    2. Clean                                                    13.ResetAddin
    3. Command                                                  14.InstallVSTemplates
    4. DebugExe                                                 15.ResetSettings
    5. Deploy                                                   16.ResetSkipPkgs
    6. Edit                                                     17.Run
    7. LCID                                                     18.Runexit
    8. Log                                                      19.SafeMode
    9. Out                                                      20.Setup
    10.Project                                                  21.Upgrade
    11.ProjectConfig                                            22.UseEnv


NOTES

    1. For build-related tasks, it is now recommended that you use MSBuild instead of devenv.
       For more information, see MSBuild Command Line Reference
    2. You must run devenv as an adminstrator in order to use the /Setup (devenv.exe) and
       /InstallVSTemplates (devenv.exe) switches. For more information, see User Permissions
       and Visual Studio




             1   Posted on http://virams.wordpress.com
Visual Studio Command Line Tool

Available command line switches:


Command line                                       Description
/Command       Starts the IDE and executes the specified command.
/DebugExe      Loads a Visual C++ executable under the control of the debugger. This switch
               is not available for Visual Basic or Visual C# executables.
/LCID          Sets the default language for the IDE. If the specified language is not included
               in your installation of Visual Studio, this setting will be ignored.
/Log           Starts Visual Studio and logs all activity to the log file.
/Run or /r     Compiles and runs the specified solution.
/Runexit       Compiles and runs the specified solution, minimizes the IDE when the
               solution is run, and closes the IDE after the solution has finished running.
/UseEnv        Causes the IDE to use PATH, INCLUDE, and LIB environment variables for
               Visual C++ compilation instead of the settings specified in the VC++
               Directories section of Projects options in the Options dialog box.
/Edit          Opens the specified files in a running instance of this application. If there are
               no running instances, it will start a new instance with a simplified window
               layout.
/ResetAddin    Starts an instance of the Visual Studio IDE without loading the specified Add-
               in.
/SafeMode      Starts Visual Studio in safe mode, and loads only the default environment and
               services, and shipped versions of third-party packages.
/ResetSkipPkgs Clears all SkipLoading tags that have been added to VSPackages by users who
               want to avoid loading problem VSPackages.
/Setup         Forces Visual Studio to merge resource metadata that describes menus,
               toolbars, and command groups, from all VSPackages available.
/NoVSIP           Disables the VSIP developer's license key for VSIP testing.




           2   Posted on http://virams.wordpress.com
Visual Studio Command Line Tool

Application Based Options


Use the following command line switches to perform the described task. These command-line
switches do not display the IDE.

  Command line                            Description                              Example
/?                   Displays help for devenv switches in the Command          Devenv /?
                     Prompt window.


/Build               Builds the specified solution or project according to     Devenv
                     the configuration of the specified solution.              myproj.csproj
                                                                               /build

/Clean               Deletes any files created by the build command,           Devenv
                     without affecting source files.                           myproj.csproj
                                                                               /clean

/Deploy              Builds the solution, along with files necessary for       Devenv
                     deployment, according to the solutions                    myproj.csproj
                     configuration.                                            /deploy


/InstallVSTemplat    Registers project or item templates that are located      Devenv
es                   in                                                        /InstallVSTemplat
                     <VisualStudioInstallDir>Common7IDEProjectTemp          es
                     lates or
                     <VisualStudioInstallDir>Common7IDEItemTemplat
                     es so that they can be accessed through the New
                     Project and Add New Item dialog boxes.


/Out                 Lets you specify a file to receive errors when you        Devenv
                     build.                                                    myproj.csproj
                                                                               /build /out log.txt

/Project             The project to build, clean, or deploy. You can use       Devenv
                     this switch only if you have also supplied the /build,    myproj.csproj
                     /rebuild, /clean, or /deploy switch.                      /ProjectConfig
                                                                               Debug
/ProjectConfig       Specifies the project configuration to build or deploy.   devenv
                     You can use this switch only if you have also supplied    MySolution.sln
                     the /project switch.                                      /build Debug

           3   Posted on http://virams.wordpress.com
Visual Studio Command Line Tool

                                                                                /project
                                                                                MyProject.csproj
                                                                                /projectconfig
                                                                                Debug


/Rebuild             Cleans and then builds the specified solution or           devenv
                     project according to the configuration of the              MySolution.sln
                     specified solution.                                        /Rebuild Debug
                                                                                /project
                                                                                MyProject.csproj
                                                                                /projectconfig
                                                                                Debug


/Upgrade             Upgrades the specified solution file and all its project   devenv
                     files, or the specified project file, to the current       MyProject.sln
                     Visual Studio formats for these files.                     /upgrade


/ResetSettings       Restores Visual Studio default settings. Optionally        Devenv.exe
                     resets the settings to the specified .vssettings file.     /ResetSettings




           4   Posted on http://virams.wordpress.com

More Related Content

PDF
Agile Software Development & Tools
PDF
Safe Bundle Updates
PPTX
Continuous Deployment Pipeline with maven
PPTX
Version Management in Maven
PDF
Build Automation using Maven
PPTX
Apache Maven for SoftServe IT Academy
PDF
Build server
Agile Software Development & Tools
Safe Bundle Updates
Continuous Deployment Pipeline with maven
Version Management in Maven
Build Automation using Maven
Apache Maven for SoftServe IT Academy
Build server

What's hot (20)

PDF
The Brave New World of Continuous Release - Baruch Sadogursky
PDF
Make use of Sonar for your mobile developments - It's easy and useful!
PDF
Labri 2021-invited-talk
PPT
Maven basic concept
PDF
Ant, Maven and Jenkins
PDF
PVS-Studio Is Now in Chocolatey: Checking Chocolatey under Azure DevOps
PPTX
Containerize your Blackbox tests
PDF
Docker - A lightweight Virtualization Platform for Developers
DOCX
Diversified AT Framework - Initial Version
PPTX
Introduction to Maven
PDF
ScalaUA - distage: Staged Dependency Injection
PDF
Alex Honor - Devops Toolchain
PDF
Hyper-pragmatic Pure FP testing with distage-testkit
PPT
GWT_Framework
KEY
うさぎ組 in G* WorkShop -うさみみの日常-
PDF
Stop (de)bugging me!
ODP
Unit Test Android Without Going Bald
PDF
Jenkins Meetup Pune
PDF
Izumi 1.0: Your Next Scala Stack
PDF
Scala, Functional Programming and Team Productivity
The Brave New World of Continuous Release - Baruch Sadogursky
Make use of Sonar for your mobile developments - It's easy and useful!
Labri 2021-invited-talk
Maven basic concept
Ant, Maven and Jenkins
PVS-Studio Is Now in Chocolatey: Checking Chocolatey under Azure DevOps
Containerize your Blackbox tests
Docker - A lightweight Virtualization Platform for Developers
Diversified AT Framework - Initial Version
Introduction to Maven
ScalaUA - distage: Staged Dependency Injection
Alex Honor - Devops Toolchain
Hyper-pragmatic Pure FP testing with distage-testkit
GWT_Framework
うさぎ組 in G* WorkShop -うさみみの日常-
Stop (de)bugging me!
Unit Test Android Without Going Bald
Jenkins Meetup Pune
Izumi 1.0: Your Next Scala Stack
Scala, Functional Programming and Team Productivity
Ad

Similar to Devenv command line (20)

DOCX
C# tutorial
PPTX
7 free Visual Studio extensions
PDF
Visual Studio 2008 Overview
PDF
Membangun Desktop App
PPTX
WP7 HUB_Introducción a Visual Studio
PPTX
02 - Build and Deployment Management
PDF
Build Windows Applications Fast | Delphi Features Matrix
DOC
Dot net 2005 vs 2003
DOCX
Visual Studio2008 Product Comparison V1.08
PDF
Visual Studio commands
PDF
Intro to .NET and Core C#
PPTX
01. Introduction to Programming
PDF
C++Builder Feature Matrix
PPT
A Lap Around Visual Studio 2010
PDF
Application Development | Delphi Review 2009
PPTX
LECTURE 1 - Introduction to Programming.pptx
ODP
Software Build processes and Git
PPT
End To End Build Automation With Team Build
PDF
New and Enhanced C++ Builder 2010 Features
PPTX
1.2 introduction to scm - what does version number tell us
C# tutorial
7 free Visual Studio extensions
Visual Studio 2008 Overview
Membangun Desktop App
WP7 HUB_Introducción a Visual Studio
02 - Build and Deployment Management
Build Windows Applications Fast | Delphi Features Matrix
Dot net 2005 vs 2003
Visual Studio2008 Product Comparison V1.08
Visual Studio commands
Intro to .NET and Core C#
01. Introduction to Programming
C++Builder Feature Matrix
A Lap Around Visual Studio 2010
Application Development | Delphi Review 2009
LECTURE 1 - Introduction to Programming.pptx
Software Build processes and Git
End To End Build Automation With Team Build
New and Enhanced C++ Builder 2010 Features
1.2 introduction to scm - what does version number tell us
Ad

More from Wadhwani Foundation (20)

PDF
Empty Fleet Corporate Profile 2017
PPTX
PDF
4 rce global brochure
PPTX
Mybon voyage - Digital Intelligent Transport ecoSystem
PDF
Enterprise Startup to watch in 2015 by CIO Review
PDF
Integrated with In vehicle infotainment - Public Address System
PDF
Motor Sports Race and Rally Tracking by iGateway's Sports Track GPS
PDF
Why to chose IGateway as your GPS Partner?
PDF
Awards and Achievements - 2013
PDF
Awards and Recognition of Year 2014
PPTX
Vts telematics in public transport conference at Ahmedabad today
PDF
Vehicle Tracking system for Government and Logistics by DeepBiz
PDF
School buses turning into smart fleets to provide safety solutions to their s...
PPTX
iCareU Usage based Insurance in India
PDF
Corporate Profile of DeepBiz Technologies for the year 2013-2014
PDF
Kmsc green run tsd 17 aug 2014 approved
PDF
Final SR for rally of bangalore 2014 by KMSC at Aug 16 and 17
PDF
Sponsorship Opportunity in National TSD Rally Round III at Bangalore.
PDF
MONSOON RUN 2014 CMSC (Calcutta Motor Sports Club) Result
PPTX
iGateway Smart GPS Platform for Telematics Industries
Empty Fleet Corporate Profile 2017
4 rce global brochure
Mybon voyage - Digital Intelligent Transport ecoSystem
Enterprise Startup to watch in 2015 by CIO Review
Integrated with In vehicle infotainment - Public Address System
Motor Sports Race and Rally Tracking by iGateway's Sports Track GPS
Why to chose IGateway as your GPS Partner?
Awards and Achievements - 2013
Awards and Recognition of Year 2014
Vts telematics in public transport conference at Ahmedabad today
Vehicle Tracking system for Government and Logistics by DeepBiz
School buses turning into smart fleets to provide safety solutions to their s...
iCareU Usage based Insurance in India
Corporate Profile of DeepBiz Technologies for the year 2013-2014
Kmsc green run tsd 17 aug 2014 approved
Final SR for rally of bangalore 2014 by KMSC at Aug 16 and 17
Sponsorship Opportunity in National TSD Rally Round III at Bangalore.
MONSOON RUN 2014 CMSC (Calcutta Motor Sports Club) Result
iGateway Smart GPS Platform for Telematics Industries

Recently uploaded (20)

PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Flame analysis and combustion estimation using large language and vision assi...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Abstractive summarization using multilingual text-to-text transfer transforme...
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
2018-HIPAA-Renewal-Training for executives
DOCX
search engine optimization ppt fir known well about this
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
The various Industrial Revolutions .pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Custom Battery Pack Design Considerations for Performance and Safety
A proposed approach for plagiarism detection in Myanmar Unicode text
Enhancing emotion recognition model for a student engagement use case through...
Zenith AI: Advanced Artificial Intelligence
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Flame analysis and combustion estimation using large language and vision assi...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
NewMind AI Weekly Chronicles – August ’25 Week III
CloudStack 4.21: First Look Webinar slides
Abstractive summarization using multilingual text-to-text transfer transforme...
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Getting started with AI Agents and Multi-Agent Systems
2018-HIPAA-Renewal-Training for executives
search engine optimization ppt fir known well about this
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
sbt 2.0: go big (Scala Days 2025 edition)
Consumable AI The What, Why & How for Small Teams.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
The various Industrial Revolutions .pptx

Devenv command line

  • 1. Visual Wednesday 13 July 2011 Studio Command devenv Line Tool Muthu Swamy S
  • 2. Visual Studio Command Line Tool Visual Studio Command Line Usage: devenv [solutionfile | projectfile | anyfile.ext] [switches] The first argument for devenv is usually a solution file or project file. You can also use any other file as the first argument if you want to have the file open automatically in an editor. When you enter a project file, the IDE looks for an .sln file with the same base name as the project file in the parent directory for the project file. If no such .sln file exists, then the IDE looks for a single .sln file that references the project. If no such single .sln file exists, then the IDE creates an unsaved solution with a default .sln file name that has the same base name as the project file. 1. Build 12.Rebuild 2. Clean 13.ResetAddin 3. Command 14.InstallVSTemplates 4. DebugExe 15.ResetSettings 5. Deploy 16.ResetSkipPkgs 6. Edit 17.Run 7. LCID 18.Runexit 8. Log 19.SafeMode 9. Out 20.Setup 10.Project 21.Upgrade 11.ProjectConfig 22.UseEnv NOTES 1. For build-related tasks, it is now recommended that you use MSBuild instead of devenv. For more information, see MSBuild Command Line Reference 2. You must run devenv as an adminstrator in order to use the /Setup (devenv.exe) and /InstallVSTemplates (devenv.exe) switches. For more information, see User Permissions and Visual Studio 1 Posted on http://virams.wordpress.com
  • 3. Visual Studio Command Line Tool Available command line switches: Command line Description /Command Starts the IDE and executes the specified command. /DebugExe Loads a Visual C++ executable under the control of the debugger. This switch is not available for Visual Basic or Visual C# executables. /LCID Sets the default language for the IDE. If the specified language is not included in your installation of Visual Studio, this setting will be ignored. /Log Starts Visual Studio and logs all activity to the log file. /Run or /r Compiles and runs the specified solution. /Runexit Compiles and runs the specified solution, minimizes the IDE when the solution is run, and closes the IDE after the solution has finished running. /UseEnv Causes the IDE to use PATH, INCLUDE, and LIB environment variables for Visual C++ compilation instead of the settings specified in the VC++ Directories section of Projects options in the Options dialog box. /Edit Opens the specified files in a running instance of this application. If there are no running instances, it will start a new instance with a simplified window layout. /ResetAddin Starts an instance of the Visual Studio IDE without loading the specified Add- in. /SafeMode Starts Visual Studio in safe mode, and loads only the default environment and services, and shipped versions of third-party packages. /ResetSkipPkgs Clears all SkipLoading tags that have been added to VSPackages by users who want to avoid loading problem VSPackages. /Setup Forces Visual Studio to merge resource metadata that describes menus, toolbars, and command groups, from all VSPackages available. /NoVSIP Disables the VSIP developer's license key for VSIP testing. 2 Posted on http://virams.wordpress.com
  • 4. Visual Studio Command Line Tool Application Based Options Use the following command line switches to perform the described task. These command-line switches do not display the IDE. Command line Description Example /? Displays help for devenv switches in the Command Devenv /? Prompt window. /Build Builds the specified solution or project according to Devenv the configuration of the specified solution. myproj.csproj /build /Clean Deletes any files created by the build command, Devenv without affecting source files. myproj.csproj /clean /Deploy Builds the solution, along with files necessary for Devenv deployment, according to the solutions myproj.csproj configuration. /deploy /InstallVSTemplat Registers project or item templates that are located Devenv es in /InstallVSTemplat <VisualStudioInstallDir>Common7IDEProjectTemp es lates or <VisualStudioInstallDir>Common7IDEItemTemplat es so that they can be accessed through the New Project and Add New Item dialog boxes. /Out Lets you specify a file to receive errors when you Devenv build. myproj.csproj /build /out log.txt /Project The project to build, clean, or deploy. You can use Devenv this switch only if you have also supplied the /build, myproj.csproj /rebuild, /clean, or /deploy switch. /ProjectConfig Debug /ProjectConfig Specifies the project configuration to build or deploy. devenv You can use this switch only if you have also supplied MySolution.sln the /project switch. /build Debug 3 Posted on http://virams.wordpress.com
  • 5. Visual Studio Command Line Tool /project MyProject.csproj /projectconfig Debug /Rebuild Cleans and then builds the specified solution or devenv project according to the configuration of the MySolution.sln specified solution. /Rebuild Debug /project MyProject.csproj /projectconfig Debug /Upgrade Upgrades the specified solution file and all its project devenv files, or the specified project file, to the current MyProject.sln Visual Studio formats for these files. /upgrade /ResetSettings Restores Visual Studio default settings. Optionally Devenv.exe resets the settings to the specified .vssettings file. /ResetSettings 4 Posted on http://virams.wordpress.com