Visual Studio Cpp project run problem

drjackool 956 Reputation points
2023-08-17T17:09:49.8033333+00:00

Hi

I use VS 2022 version 17.6.5; My project is Win32 platform, My problem is when changing a file and then pressing F5 to run the project ( in Debug) the modified file is NOT compiled and VS uses previous build file so I have to use Rebuild menu to build entire project ! How solve this problem ? I think I changed some settings in VS options that cause this issue but I'm not sure!

Thanks

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 51,361 Reputation points
    2023-08-17T19:19:31.25+00:00

    The "Never Build" setting in VS2022 Options as shown below could be the problem. You want "Always Build".

    neverbuild


  2. RLWA32 51,361 Reputation points
    2023-08-18T09:31:10.8966667+00:00

    The problem can also happen if "Build" is not checked in the configuration manager.

    configmgr


Your answer

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