This project has moved and is read-only. For the latest updates, please go here.

Replacing the Bindings file values with

Topics: Bindings File, Settings Management and SSO
Apr 19, 2012 at 9:31 PM
Edited Apr 19, 2012 at 9:31 PM

I have the following in the btdproj file :


tion="'$(Configuration)' == ''">Debug</Configuration>


    <Platform Condition="'$(Platform)' == ''">x86</Platform>

1. the portbindings.xml that is generated has   <Address>${DbName}</Address>.
2. The env specific file generated is as follows :
<?xml version="1.0" encoding="utf-8"?>
  This file was auto-generated by the Environment Settings Spreadsheet to XML Exporter (

  Input File: SettingsFileGenerator.xml
  Created: 4/19/2012 04:19 PM
  <!--Environment: Local Development-->
  <property name="DbName">TestDbName</property>

But when I deploy the bindings the DbName is not getting replaced. The port binding shows up as such like {$DbName} with out 
substituting the value from the TestDbName.


Apr 19, 2012 at 10:59 PM

The directive ${DbName} is in PortBindingsMaster.xml and it's still appearing in PortBindings.xml, correct?  It doesn't look like you have RequireXmlPreprocessDirectives in your .btdfproj.  The default is true.  Are you surrounding your ${DbName} with the preprocessor comment, like <!-- ifdef ${_xml_preprocess} -->?  If not, then you need to set RequireXmlPreprocessDirectives to false.

Have you looked at the BasicMasterBindings sample app?