The following command-line switches don't display the IDE. For more information, see Setting the Path and Environment Variables for Command-Line Builds. This switch is installed with the Desktop development with C++ workload. Opens Team Explorer and launches a viewer for the provided artifact URI if one is registered.Ĭauses the IDE to use PATH, INCLUDE, LIBPATH, and LIB environment variables for C++ compilation. This switch loads only the default environment, the default services, and the shipped versions of third-party packages. vssettings file.ĭevenv /resetsettings mysettings.vssettingsĬompiles and runs the specified solution.Ĭompiles and runs the specified solution, minimizes the IDE when the solution is run, and closes the IDE after the solution has finished running. Optionally resets the settings to the specified. Opens the IDE without showing the splash screen. Opens the IDE in a DPI-disabled mode that allows for a more accurate layout in the Windows Forms Designer. Starts Visual Studio and logs all activity to the log file. If the specified language isn't included in your installation of Visual Studio, this setting is ignored. If there are no running instances, it starts a new instance with a simplified window layout. Opens the specified files in a running instance of this application. Opens the specified solution without loading any projects. Takes four parameters: SourceFile, TargetFile, SourceDisplayName (optional), and TargetDisplayName (optional). For more information, see Automatically start a process in the debugger.Ĭompares two files. This switch isn't available for Visual Basic or C# executables. Loads a C++ executable under the control of the debugger. Starts the IDE and executes the specified command. The following command-line switches display the IDE and do the described task. You can't use pattern-matching syntax in devenv commands. For example, the command devenv /log output.txt opens the IDE and outputs all log information for that session to output.txt. Insert one space character between switches and arguments on the same line. When file paths and file names include spaces, you must enclose them in quotation marks (""). If the parent folder contains no solution file that references this project, or if the parent folder contains two or more solution files that reference it, then a temporary solution file is created. One and only one solution file that references this project should be located in its parent folder. For example, the command devenv myproject1.vbproj /build searches the parent folder for a solution file that's named myproject1.sln. When you supply a project file name instead of a solution file name, a devenv command searches the parent folder of the project file for a solution file that has the same name. If the first argument is a file that's not a solution or project, that file opens in the appropriate editor, in a new instance of the IDE. When specifying a solution or project, the first argument is the name of the solution file or project file, including file path. You can specify a switch by using a hyphen ("-") or a forward slash ("/"). The following syntax rules apply to all devenv switches and their arguments: The syntax rules for devenv switches resemble the rules for other DOS command-line utilities. Using devenv.exe directly prevents output from appearing on the console. txt file.Īlternatively, commands that begin with devenv.exe can use the same switches, but the utility is bypassed. The utility determines the appropriate I/O redirection when it captures output, for example to a. Devenv switch syntaxĬommands that begin with devenv are handled by the utility, which delivers output through standard system streams, such as stdout and stderr. For more information, see MSBuild command-line reference.įor information about switches that are primarily intended for Visual Studio extension development, also see Devenv command-line switches for VSPackage development. For build-related tasks, it's recommended that you use MSBuild instead of devenv.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |