none
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

     <PropertyGroup>
        <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
        <Platform Condition="'$(Platform)' == ''">x86</Platform>
        <SchemaVersion>1.0</SchemaVersion>
        <ProjectName>Motor.PartnerOutbound</ProjectName>
        <EndpointName>Selection Criteria</EndpointName>
        <ProjectVersion>1.0</ProjectVersion>
        <IncludeSSO>True</IncludeSSO>
        <RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
        <ApplyXmlEscape>True</ApplyXmlEscape>
        <IncludeSchemas>False</IncludeSchemas>
        <IncludeOrchestrations>False</IncludeOrchestrations>
        <IncludeTransforms>False</IncludeTransforms>
        <IncludeComponents>True</IncludeComponents>
        <IncludePipelines>True</IncludePipelines>
        <IncludeSSO>False</IncludeSSO>
        <UsingMasterBindings>True</UsingMasterBindings>
        <SkipIISReset>True</SkipIISReset>
        <SkipBizTalkReset>False</SkipBizTalkReset>
        <SkipDeployApp>True</SkipDeployApp>
        <IncludeVocabAndRules>False</IncludeVocabAndRules>
       
      </PropertyGroup>

    Thanks

    Manoj

    Wednesday, March 9, 2016 8:32 AM

Answers

  • In your btdfproj file you have defined the following: 

      <RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>

    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:

    http://blog.eldert.net/using-btdf-to-create-alternative-ports-for-different-environments/


    Wednesday, March 9, 2016 9:03 AM

All replies