0

The issue is exactly the same as here: Visual Studio need to rebuild solution for every change

I make a change to my project, press ctrl + shift + b to build and it succeeds. When I go to run my application, the changes I made do not "show". For example, I change some numbers, they don't have any effect. If I put a breakpoint inside a function, it will come up with the same message as in the other post. To apply the changes, I have to click rebuild, which takes around 1 and a half minute to 2 minutes, simply building the changes in a cpp file would take a lot less time. In the configuration manager, I have the project added.

I tried looking inside the project / solution properties, maybe something is set up incorrectly, however, I have found nothing that would cause this.

  • what do you change? A cpp file? a header file? are there any warnings in the compiler output? do you have the same file in a project multiple times? are all your header files part of your project? – Alan Birtles Jul 13 '23 at 19:47
  • I change some code in a cpp file, which would not require a full rebuild. The cpp file is not included in other files, so it should be fine. Let's say, i change a number from 1 to 0, by building it wont take effect, only if i click rebuild, which takes a lot longer. – user3244554223 Jul 14 '23 at 08:03
  • At a guess the file is in a project which doesn't have it's dependencies set correctly so it doesn't get built when dependant projects are built – Alan Birtles Jul 14 '23 at 08:22
  • All of the files are in the same project, and the files do not necessarily rely on other dependencies. The most is, that a header file from the same project is included, however, that header file does not get changed, only the cpp file. Also, this does not happen all the time, just sometimes, hence it's annoying, because I can't know for sure, if it's my code not working, or the code changes just not getting applied. – user3244554223 Jul 14 '23 at 09:52

0 Answers0