Skip to content

Shared Environments Settings Files

Charlie Mott edited this page Nov 17, 2017 · 2 revisions

Wiki: Home > Tips and Tricks

Requirement

Use a shared Environments Settings spread sheet to hold common settings (hosts, tracking settings, etc) so we don't have to repeat this in all our application environment settings.

Solution

Approach implemented by the BizTalk Factory (which makes use of BTDF):

  • Defined another ItemGroup on top of PropsFromEnvSettings, i.e. CommonPropsFromEnvSettings.
  • The application-specific properties have precedence over the common ones (this is mainly due to the way xmlpreprocess works).
  • The common setting files must be called, by convention, Common.SettingsFileGenerator.xml.
See lines 217 to 333, just after the "Common & Specific Settings Files" banner, in file  BizTalk.Factory.Deployment.targets. 

References: