Как установить visual studio на другой диск
Перейти к содержимому

Как установить visual studio на другой диск

  • автор:

Name already in use

visualstudio-docs / docs / install / change-installation-locations.md

  • Go to file T
  • Go to line L
  • Copy path
  • Copy permalink

9 contributors

Users who have contributed to this file

  • Open with Desktop
  • View raw
  • Copy raw contents Copy raw contents

Copy raw contents

Copy raw contents

Select the installation locations in Visual Studio

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.

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

[!NOTE] There are some tools and SDKs that have different rules on where they can be installed. Such tools and SDKs are installed on your system drive even if you choose another location.

When you install Visual Studio, choose the Installation locations tab.

Screenshot showing the Installation locations tab of the Visual Studio Installer.

In the Visual Studio IDE section, accept the default. Visual Studio installs the core product and includes files that are specific to this version of Visual Studio.

[!TIP] If your system drive is a solid-state drive (SSD), we recommend that you accept the default location on your system drive. The reason? When you develop with Visual Studio, you read from and write to a lot of files, which increases the disk I/O activity. It’s best to choose your fastest drive to handle the load.

In the Download cache section, decide if you want to keep the download cache, and then decide where you want to store its files.

Check or uncheck Keep download cache after the installation.

If you decide not to keep the download cache, the location is used only temporarily. This action won’t affect or delete files from previous installations.

Specify the drive where you want to store installation files and manifests from the download cache.

For example, if you select the «Desktop development with C++» workload, the temporarily required size is 1.58 GB on your system drive, which is then freed as soon as the installation completes.

[!IMPORTANT] This location is set with your first installation and cannot be changed later from the installer UI. Instead, you must use command-line parameters to move the download cache.

In the Shared components, tools, and SDKs section, note that it uses the same drive that you chose in the «Download cache» section. The \Microsoft\VisualStudio\Shared directory is where Visual Studio stores 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.

. image type=»content» source=»media/vs-2022/vs-installer-installation-locations-tab.png» border=»false» alt-text=»Screenshot showing the Installation locations tab of the Visual Studio Installer.».

In the Visual Studio IDE section, accept the default path. Visual Studio installs the core product, and includes files that are specific to this version of Visual Studio.

[!TIP] If your system drive is a solid-state drive (SSD), we recommend that you keep the core product on your system drive. The reason? When you develop with Visual Studio, you read from and write to a lot of files, which increases the disk I/O activity. It’s best to choose your fastest drive to handle the load.

[!IMPORTANT] You can select a different location only when you first install Visual Studio. If you’ve already installed it and want to change the location, you must uninstall Visual Studio and then reinstall it.

In the Download cache section, decide whether you want to keep the download cache, and if so, where you want to store its files.

Check or uncheck Keep download cache after the installation.

If you decide not to keep the download cache, the download cache location is only temporarily used. This action won’t affect or delete files from previous installations.

For example, if you select the «Desktop development with C++» workload, the temporarily required size for the download cache location is 1.28 GB. As soon as the installation completes, downloaded cache files are removed, leaving only package metadata.

Specify the folder path, including the drive, where you want to store the installation files and manifests from the download cache.

[!IMPORTANT] You can select a different location only when you first install Visual Studio. If you’ve already installed it and want to change the location, you must uninstall Visual Studio and then reinstall it.

In the Shared components, tools, and SDKs section, select the folder 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.

[!IMPORTANT] If you’ve installed Visual Studio on your computer before, you won’t be able to change the Shared components, tools, and SDKs path and it will appear greyed out.

Change Visual Studio installation folder after install

I’m running out of space on the partition that has Visual Studio installed. It’s safe to copy the installation in another partition?

4 Answers 4

You could move the files to the new location (manually) and then use Junction (http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx) to create a link back. I did that with 2012 and it seems to be working for me.

Tom's user avatar

Without having tried I bet this isn’t possible.

Installation folders are typically stored in many places such as config files and the registry. After moving, all these references will still point to the old and now invalid location. And, even worse, moving the folder will also break any installation / uninstallation / update routines which means that you will no longer be able to install patches and service packs.

Conclusion: You are way better off uninstalling Visual Studio and moving it to the new location. It takes only a short time as compared to the headache that you would end up otherwise.

(Or, if you don’t like to do that you can of course still mount a new partition to the program files folder to increase disc space or get a larger hard drive)

Как установить visual studio на другой диск

enter image description here

Как установить Visual Studio 2015 на другой диск

visual studio install dialog with inactive path for install location

vs_community_ENU.exe /uninstall /force

vs_community_ENU /CustomInstallPath E:\VisualStudio2015

  • вся установка находится на втором диске. будет работать даже с 32GB ssd. (Это основной пункт продажи, учитывая, что Visual studio с его дополнительными функциями превышает 30 Гб. Если у вас есть ГБ, чтобы сэкономить это решение не самое лучшее для вас)
  • удаление или резервное копирование-это ветер. Просто удалить или переместите файл изображения. Нет конфликтов системных файлов и грязного реестра в случае поврежденной установки.
  • вам нужно много ОЗУ. Я использую 4GB (из 8) и 2 (из 6) ядра для комфортного запуска. Тем не менее, это все еще медленнее, чем обычная установка.
  • не будет работать для приложений с обширной 3d-графикой. Если вы хотите работать с формами, это нормально, но если вы хотите создать 3d-игру для android, используя say xamarin, то забудь это.
  • тестирование программы занимает несколько секунд для компиляции (минуты для приложений android). Это может показаться немного, но во время разработки эти секунды складываются.

Как изменить путь установки Visual Studio 2019?

Здравствуйте, решил установить VisualStudio Community 2019, но заметил, что нельзя перенести путь установки полностью, а только часть всех компонентов VS
выглядит это в инсталяторе примерно так.
image.png

  • Вопрос задан более трёх лет назад
  • 953 просмотра
  • Facebook
  • Вконтакте
  • Twitter

mindtester

RlUOSvY.png

  • Facebook
  • Вконтакте
  • Twitter

MrKarton

У меня при первичной установке можно выбрать другой диск, однако он всё равно говорит что на диске C: недостаточно места
5e010ea8c2beb676184336.jpeg

Как установить visual studio на другой диск

Gray Pipe

Лучший отвечающий

Вопрос

Ответы

  • Предложено в качестве ответа Maksim Marinov Microsoft contingent staff, Moderator 24 октября 2016 г. 12:57
  • Помечено в качестве ответа Maksim Marinov Microsoft contingent staff, Moderator 25 октября 2016 г. 7:24

Если Вам помог чей-либо ответ, пожалуйста, не забывайте жать на кнопку "Предложить как ответ" или "Проголосовать за полезное сообщение" Мнения, высказанные здесь, являются отражение моих личных взглядов, а не позиции корпорации Microsoft. Вся информация предоставляется "как есть" без каких-либо гарантий.

  • Помечено в качестве ответа Vladislavvvv 25 октября 2016 г. 11:46

Все ответы

  • Предложено в качестве ответа Maksim Marinov Microsoft contingent staff, Moderator 24 октября 2016 г. 12:57
  • Помечено в качестве ответа Maksim Marinov Microsoft contingent staff, Moderator 25 октября 2016 г. 7:24

Если Вам помог чей-либо ответ, пожалуйста, не забывайте жать на кнопку "Предложить как ответ" или "Проголосовать за полезное сообщение" Мнения, высказанные здесь, являются отражение моих личных взглядов, а не позиции корпорации Microsoft. Вся информация предоставляется "как есть" без каких-либо гарантий.

  • Помечено в качестве ответа Vladislavvvv 25 октября 2016 г. 11:46

Звучит как магия, как так удаляли, а место свободное уменшилось. Но если честно сказать всегда лучшим методом переустановки VS, является новая установка на чистую ОС.

Если Вам помог чей-либо ответ, пожалуйста, не забывайте жать на кнопку "Предложить как ответ" или "Проголосовать за полезное сообщение" Мнения, высказанные здесь, являются отражение моих личных взглядов, а не позиции корпорации Microsoft. Вся информация предоставляется "как есть" без каких-либо гарантий.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *