Why install visual studio from command line tool?
There are three main reasons for installing visual studio from command line.
- Allows installing VS with preselected options, needed to build the project. Hence, everyone in the team has exactly the same VS with dependencies.
Automate the installation process. Meaning instead of selecting all the packages manually you can create a command to execute from the command prompt. This is very helpful when you want to install visual studio on remote servers via Jenkins. For example,
vs_enterprise.exe [command] <options>
When you keep the command
blank it installs the product.
To install visual studio with the Windows10 SDK 15063 Desktop and NuGet version without restarting the computer, you can use the following command:
.vs_enterprise.exe
--add Microsoft.VisualStudio.Component.Windows10SDK.15063.Desktop
--add Microsoft.VisualStudio.Component.NuGet
--norestart
- Develop a cache of the installation files for future use, to speed up the installation.