Hello @Dmtr_Grms ,
Thanks for taking time to post this issue in Microsoft Q&A forum.
Please find visual studio 2022 cache folders by following:
1 Component Cache
Close Visual Studio (ensure devenv.exe is not present in the Task Manager) and delete the C:\Users\xxxx AppData\Local\Microsoft\VisualStudio\your version xxx\ComponentModelCache directory
2 Temp folder
Delete the C:\Users\xxxx \AppData\Local\Temp directory
3 Roslyn folder
C:\Users\xxxx\AppData\Local\Microsoft\VisualStudio\Roslyn
NET Compiler Platform, also known by its nickname Roslyn, is a set of open-source compilers and code analysis APIs for C# and Visual Basic languages from Microsoft. Deleting this cache folder will not affect Visual Studio, but it may affect the loading speed of .NET Compiler Platform Roslyn Analyzers.
Besides, if you want to save memory space, you can unselect download cache
to not keep the download cache, the download cache location is only temporarily used.
Also, it’s a workaround to write a script to clean up the cache folder periodically instead of manual deletion.
For example
Remove-Item `your cache path` -Recurse
Feel free to contact us.
Sincerely,
Douxu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our [documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.