Visual-studio – Visual Studio – Deleting .vs folder

visual studiovisual-studio-2017

I have a 3gb .vs folder in my C++ project.

I am wondering if it is safe to delete the .vs folder.

If not what can i do to decrease the volume.

Thanks in advance.

Best Answer

The .vs folder is generated by Visual Studio and is readily re-created. Sometimes removing .vs is necessary to get a project building again, for example after a Visual Studio update, or opening the solution from a portable drive on a different computer.

However, be aware that you will lose some user state related to the solution:

  • Selected build configuration
  • Local debug settings, like startup project(s)

You will NOT lose:

  • Solution/project structure
  • Build configuration definitions
  • Project dependencies
  • Third-party extension settings etc.