locked
Custom property page not being applied RRS feed

  • Question

  • VS2015, Enterprise. I have created the below simple custom property page to add search directories for include files and libraries to my project. The property page is part of my Debug|x64 and Release|x64 configurations, but they are not being applied.

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <ImportGroup Label="PropertySheets" />
      <PropertyGroup Label="UserMacros" />
      <ItemGroup>
        <BuildMacro Include="OpenCV_Inc">
          <Value>$(OpenCV_Inc)</Value>
        </BuildMacro>
      </ItemGroup>
      <ItemDefinitionGroup>
        <ClCompile>
          <AdditionalIncludeDirectories>$(OpenCV_Inc);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
          <AdditionalUsingDirectories>$(OpenCV_Inc)</AdditionalUsingDirectories>
        </ClCompile>
        <Link>
          <AdditionalLibraryDirectories>$(OpenCV_Lib);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
          <AdditionalDependencies>OpenCV_world300.lib;%(AdditionalDependencies)</AdditionalDependencies>
        </Link>
      </ItemDefinitionGroup>
    </Project>

    As you can see, from the following log file, VS isn't even attempting to insert the include directory in the CL command

    ^D:\PROJECTS\FACETESTS\FACEDETECT\FACEDETECT.CPP
    /c /ZI /nologo /W3 /WX- /sdl /Od /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"X64\DEBUG\\" /Fd"X64\DEBUG\VC140.PDB" /Gd /TP D:\PROJECTS\FACETESTS\FACEDETECT\FACEDETECT.CPP

    So, how do I get VS to use the property page?

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Friday, November 20, 2015 11:02 PM

All replies

  • Hi Brian Catlin,

    I will involve some experts to help you handle this issue. Thank you for your understanding.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Monday, November 23, 2015 9:13 AM