C++ Precompiled Header Disabled

ccompiler-errorsprecompiled-headersvisual studio

In Visual Studio 2015, I have a C++/CLI project with the following error:

"fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?"

I turned off precompiled headers in the project options but it keeps giving me the same error. I even removed the name of the precompiled header file but it still says "stdafx.h".

Edit:
Yes, every source file indivuduially doesn't have it enabled.

Best Answer

Ok. Hans Passant found out what was happening:

The build configuration that I used to build it still had precompiled headers enabled.