BTDF issue while generating portbinding.xml file RRS feed

  • Question

  • I am using BTDF  in my project I am facig one issue that is while creating MSI  the port binging.xml is generating commented address and due to this everytime my receive port url is captured from else part.<o:p></o:p>

    Below screen shot is from portbindingmaster.xml

    but when PORTBINDING.xml is generating that time address is taken form settingfilegenerator.xml but it is coming as commented .please see the below screenshot 

    can anyone please explain me why it is behaving like this .even though the same code is working with other application.

    for your reference these are the properties in .btdf file

        <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
        <Platform Condition="'$(Platform)' == ''">x86</Platform>
        <EndpointName>Selection Criteria</EndpointName>



    Wednesday, March 9, 2016 8:32 AM


  • In your btdfproj file you have defined the following: 


    This is why the ifdef in your portbindings file is ignored.
    In case you want to use optional ports you can do this by setting RequireXmlPreprocessDirectives to true.
    In case you do not need optionalities you can leave RequireXmlPreprocessDirectives to False, and not use ifdef statements in your portbindings.

    More information on BTDF with optinional ports can be found here:

    Wednesday, March 9, 2016 9:03 AM

All replies