Visual Studio dependency check

Sep 15, 2017 at 12:06pm
I have a CPP file which include various .i files. When I update one of the .i files, the cpp file is not compiled when I do a build. How do I get the cpp file to know that the .i file is a dependency and so needs to check its date?
Sep 15, 2017 at 12:20pm
You can try Build -> Rebuild solution
Sep 15, 2017 at 1:45pm
Yes I know that, but I'd rather not rebuild everything as it is not needed and is time-consuming. Surely VS should be able to know that the include file is a dependency?
Sep 15, 2017 at 2:16pm
Add the .i file to the project.
Sep 15, 2017 at 3:24pm
It is already in the project.
Sep 15, 2017 at 3:39pm
Right click on the .i file, change the 'Item Type' to 'C/C++ header'
Topic archived. No new replies allowed.