Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 - Not enough disk space

I'm trying to install visual studio 2017 with Xamarin which requires ~30GB of space and I have this amount available in the directory that VS2017 is currently installed in. I'm trying to basically modify the install to add Xamarin to it, however it says I don't have enough disk space because despite the download directory being in my D drive, it's still trying to install components to my C drive. I haven't been able to find anything about this issue online yet.

Visual studio installer:

enter image description here

File explorer (notice C drive has less than the required amount available)

enter image description here

like image 693
px06 Avatar asked Mar 09 '17 21:03

px06


People also ask

How do I free up disk space in Visual Studio 2013?

If you use Visual Studio Ultimate or Enterprise to debug applications and you have enabled storage of IntelliTrace recordings, you may be able to free up substantial disk space by cleaning out the IntelliTrace files folder. By default, this is at C:\ProgramData\Microsoft Visual Studio\12.0\TraceDebugging for Visual Studio 2013.

How much disk space do I need for Visual Studio?

2 GB of RAM; 4 GB of RAM recommended (2.5 GB minimum if running on a virtual machine) Hard disk space: up to 130 GB of available space, depending on features installed; typical installations require 20-50 GB of free space. Hard disk speed: to improve performance, install Windows and Visual Studio on a solid state drive (SSD).

Why can’t I install Microsoft Visual Studio?

When you try to install Microsoft Visual Studio, you receive the following error message: There is not enough space on the disk. Before you install Visual Studio, make sure that you have the required amount of space to be able to download the latest Visual Studio program or components.

Can I install Visual Studio on a drive other than system drive?

Even if you want to install Visual Studio to a drive other than the system drive, you still must have sufficient space on the system drive for the installation because some components will be installed there. To avoid this error, we recommend that you first determine the space that will be required to install the components that you want.


1 Answers

One possible issue is that not everything installed by VS goes into the VS installation folder. There are generally (I'm simplifying a little bit here) two types of install packages that will get pulled in:

  1. Instance-based packages affect this instance of VS, but no others. These are things like your Visual Studio shell, most of the components you select, and well, anything that gets installed to the path you've specified.

  2. Global packages or "singleton packages" as they're sometimes called are installed once and shared across all installs of VS2017. These can include things like SDKs, any components that are installed to the system registry or GAC, and could also include large tools like emulators.

There's a good chance that the Xamarin features are pulling in many of the 2nd type, which would get installed to Program Files by default. I don't know of a way to specify an alternative install path for these types of packages.

like image 134
Jimmy Avatar answered Oct 13 '22 12:10

Jimmy