Hello,
add %(AdditionalIncludeDirectories) to the include directory list in Release, so that it looks like the Debug line. (Or just copy the line in the Debug section and paste it in the Release section).
Regards, Guido
Why Can't Visual Studio Find My Headers?
Hi Folks:
Developing on Windows 10 Pro, Visual Studio 2022 Community.
I've been doing debug builds with VS 2022 since I installed it about a month ago.
The first time I attempted a release build for my client to test, one directory's header files couldn't be found.
The project's property sheet has the first clue I'd like to investigate.
For the debug configuration:
Configuration Properties -> C/C++ -> General -> Additional Include Directories includes a reference to %(AdditionalIncludeDirectories).
The release configuration has no reference of %(AdditionalIncludeDirectories).
Here's the debug property's Additional Include Directories' edit
The release property's Additional Include Directories edit makes no mention of %(AdditionalIncludeDirectories).
The two header file directories referenced in VC++ Directories are both empty.
Other header file directories are specified in .props files.
Release builds were working before I updated Visual Studio to 2022.
How do I get the project's release build property to reference %(AdditionalIncludeDirectories)?
The source of my problem might be something else, but this looks like a good place to start.
Thanks
Larry
-
Guido Franzke 2,196 Reputation points
2022-01-27T07:50:48.69+00:00