What is the .vs folder used for in Visual Studio solutions?
While not a direct answer to this question, I thought I'd share that I recently had an issue in my ASP.Net Core website where routing appeared to be completely broken with no code changes. What's more, I tried deleting views/razor pages and it was still incorrectly loading an old view, presumably cached. But whenever I switched to the console launch setting, the issue went away.
I then recalled that in rare cases the .vs folder can sometimes cause IIS Express to become corrupt, so I closed VS, deleted the .vs folder, re-started and launched the website with the IIS setting and everything worked again.
Even though there is no specific documentation, there was a similar question here
Usually, .vs
folder is required by Visual Studio to store opened documents, breakpoints, and other information about state of your solution. which means It contains typical files like,
- Temporary caches used by Roslyn for IntelliSense.
- IIS Express applicationHost.config file.
- Many other possible files (you are welcome to edit this answer to include what you know of).