Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Visual Studio 2017 and components to another drive?

I have a small SSD drive with only 2-3 GB free space. I need the .NET desktop and C++ desktop workloads. I tried creating offline installer, that went fine and I tried -installPath option, but it only affects the studio itself and some other components but not the Windows SDK and .NET SDK, those get installed to system drive.

I did install Windows SDK and .NET SDK's to to different drive but I had to use standalone installers for each. I was wondering if it is possible to accomplish with the installer that VS 2017 comes with.

like image 249
hidden_4003 Avatar asked Feb 16 '17 21:02

hidden_4003


People also ask

Can I install Visual Studio on another drive?

You can reduce the installation footprint of Visual Studio on your system drive by changing the location of some of its files. Specifically, you can use a different location for the download cache and shared components, tools, and SDKs.

How do I change storage location in Visual Studio?

In Visual Studio, click Tools > Options. Expand Projects and Solutions and click Locations. The Projects location field defines the default location for storing new projects. You can change this path if you are using a different working folder.

How do I add additional components in Visual Studio?

In the Visual Studio Installer, choose the Workloads tab, and then select or deselect the workloads that you want. To add more components than a workload installs, choose the Individual components tab, and then select or deselect the individual components that you want.

How to install Visual Studio 2017 on Windows?

The installation of Visual Studio 2017 has become much simpler, compared to its previous editions. You can choose the component that you wish to download and install. Visual Studio 2017 allows you to run different versions of Visual Studio side-by-side. 1. Installing the prerequisites 2. Download Visual Studio 2017 3. Starting Installation 4.

How do I install multiple components in Visual Studio 2017?

In the Visual Studio Installer, choose the Workloads tab, and then select or deselect the workloads that you want. To add more components than a workload installs, choose the Individual components tab, and then select or deselect the individual components that you want.

How do I share a Visual Studio installation?

In the Shared components, tools, and SDKs section, specify the drive where you want to store the files that are shared by side-by-side Visual Studio installations. SDKs and tools are also stored in this directory. When you install Visual Studio, choose the Installation locations tab.

How do I install Visual Studio workloads and components?

From the Workloads screen, select or deselect the workloads that you want to install or uninstall. Choose Modify again. After the new workloads and components are installed, choose Launch. Find the Visual Studio Installer on your computer.


1 Answers

No, the VS installer only allows you to specify where packages for that instance of VS are installed (i.e. anything that goes into the folder that you do get to choose). It does not currently allow you to specify where other global packages are installed.

like image 130
Jimmy Avatar answered Oct 13 '22 21:10

Jimmy