The "Never Build" setting in VS2022 Options as shown below could be the problem. You want "Always Build".
Visual Studio Cpp project run problem

drjackool
956
Reputation points
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
5,451 questions
2 answers
Sort by: Most helpful
-
-
RLWA32 49,536 Reputation points
2023-08-18T09:31:10.8966667+00:00 The problem can also happen if "Build" is not checked in the configuration manager.