Visual Studio 2022 not saving changes.

Alex Trial 5 Reputation points
2023-03-02T21:43:48.9666667+00:00

I have been trying to build a simple reverse string function in C++ but visual studio is not letting me save my work. It notifys me of build errors but I know there are none. Im testing with simple print statements.

Every time my actions go like this. I open a Hello World program in C++ visual studio 2022. I run the Hello World program to test and it works. It does. Then I try to build or copy my code. It might save one or 2 times but after that it just gives up and stops saving. It will just run my old code. Also if you try and save and exit, it will not save my work. I move my project to a new file and repeat process.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,597 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,526 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,551 Reputation points Microsoft Vendor
    2023-03-03T05:26:29.9366667+00:00

    Hi @Alex Trial

    Welcome to Microsoft Q&A! 

    Do you have any error messages or warnings when saving? Does it occur in other project types? 

    Please update your VS2022 to the latest version with Visual Studio Installer and check if it persists. 

    Besides, you can close all running VS instances and try to delete the hidden .vs folder in your project 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.