Changing the Visual Studio Build Path for a RAM Disk

I currently have Visual Studio 17 V 15.4.2

Can I set different build paths for projects? for example, instead

C:\Users\[UserName]\source\repos\[MyProject]\[bin|obj]

move it to

M:\Users\[UserName]\source\repos\[MyProject]\[bin|obj]

Note that the it self project is inside C, but temporary files are moving somewhere else. I have a disk M, which is a 16 GB disk drive.

Advantages of using a RAM disk: (reasons that prompt me to do this)

  • faster assembly time (no real IO)

  • SSD does not wear out with repeated adjustments.

  • projects are essentially cleaned up (which brings the following benefits)

  • share faster, your projects are not filled with unnecessary files, so you can easily share folders with others. (code size is usually less than 1 MB, but assembly objects may exceed 1 GB)

  • quick backups, for the same reason your project folders always remain empty, and you can backup projects much faster. (especially when you have many projects, for example, you will back up 100 MB of istead 10 GB)

  • less likely to create locked files. (which cause desync build, errors, etc.), in this case ramdisk formatting is easier than deleting VS settings or restarting.

Disadvantages:

  • you need a lot more RAM, in my case I have 32 GB, which I can save by 16 GB.

  • if you reset VS or computer, you will lose compiled objects and you need to rebuild (once)

RAM- .

, , , , :)

+4

Source: https://habr.com/ru/post/1688577/


All Articles