Common7ToolsVsDevCmd.bat
. This is usually found in C:Program Files (x86)Microsoft Visual Studio2017Community
(where the last part depends on the VS2017 version).title | description | ms.date | ms.custom | ms.topic | ms.assetid | author | ms.author | manager | ms.workload | ms.prod | ms.technology |
---|---|---|---|---|---|---|---|---|---|---|---|
Customize these examples to create your own command-line installation of Visual Studio. | seodec18 | 837F31AA-F121-46e9-9996-F8BCE768E579 | tglee | visual-studio-windows |
vs_enterprise.exe
, vs_professional.exe
and vs_community.exe
represent the respective edition of the Visual Studio bootstrapper, which is the small (approximately 1MB) file that initiates the download process. If you are using a different edition, substitute the appropriate bootstrapper name.^
character at the end of a command line to concatenate multiple lines into a single command. Alternatively, you can simply place these lines together onto a single row. In PowerShell, the equivalent is the backtick (`
) character.[!NOTE]Both commands are required. The first command updates the Visual Studio Installer. The second command updates the Visual Studio instance. To avoid a User Account Control dialog, run the command prompt as an Administrator.
%ERRORLEVEL%
environment variable will contain the return value of the command, as documented in the Use command-line parameters to install Visual Studio page. Some command utilities require additional parameters to wait for completion and to get the installer's return value. The following is an example of the additional parameters used with the PowerShell script command 'Start-Process':vs_enterprise.exe --add Microsoft.VisualStudio.Workload.CoreEditor --path install='C:VS' --path cache='C:VScache' --path shared='C:VSshared'
vs_enterprise.exe --add Microsoft.VisualStudio.Workload.CoreEditor --path install='C:VS' --path cache='C:VScache'
vs_enterprise.exe --add Microsoft.VisualStudio.Workload.CoreEditor --path install='C:VS' --path shared='C:VSshared'
vs_enterprise.exe --add Microsoft.VisualStudio.Workload.CoreEditor --path install='C:VS'