Visual Studio making thousands of files in %temp%

Eunsoo Jeon 21 Reputation points
2022-10-28T12:22:57.083+00:00

My %temp% is filled with temp files about VS, taking a few dozen GBs of my storage.
all of them are named with random characters like the ones below,
255108-image.png

and having the same content as this.
255075-image.png

are these files necessary for VS? How can I stop this?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,176 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,511 Reputation points Microsoft Vendor
    2022-10-28T13:48:03.653+00:00

    Hi @Eunsoo Jeon ,

    Welcome to Microsoft Q&A!

    The %temp% folder is used to store temporary files.
    For example, when you install the VS, the relevant installation logs will be recorded in the %temp% directory.
    You can clear the %temp% folder to free up storage space.

    In the second picture, it is Visual Studio Installer directory: C:\Program Files (x86)\Microsoft Visual Studio\Installer. It is not recommended to delete the folder.

    Sincerely,
    Anna
    *
    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.


  2. Venkatesh Konar 0 Reputation points
    2023-11-10T03:42:14.4466667+00:00

    We request you to provide more detail about the files with random extensions being created in Visual Studio Appdata>Local> Temp Folder .

    We observed a scenario where the user using Visual Studio Software v2015or v2022 . Various temp files with random extension are created on the Temp Folder. Sometimes there are some file with extension .ryk (For eg: Filename.ryk). The file with .ryk extension get detected by our security solutions and generate a alert that possible ransomware alert is observed. As .ryk file are related to Ryuk Ransomware.

    Kindly clear the below points.

    1. Clarify the creation of temporary file with random extension are expected behaviour while user uses the Visual Studio.
    2. How can we whitelist this scenario as we cannot whitelist the path of temp folder.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.