生成BTDF设置文件生成器 [英] Generating BTDF settings file generator

查看:152
本文介绍了生成BTDF设置文件生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用BizTalk服务器部署框架(肯定有许多Biztalkers这样做)来生成特定于环境的绑定.在将解决方案部署到新环境时,我会手动设置发送字符串/接收位置的连接字符串和URL.然后,我导出绑定文件,并手动将Xpaths写入在此环境中更改为SettingFileGenerator.xml的值.

I am using BizTalk server deployment framework (Sure many of Biztalkers do so) to generate environment specific bindings. When I'm deploying my solution to a new environment, I'm manually setting connection strings and URLs for sendports/receive locations. Then I am exporting binding file and manually writing Xpaths to a values that change in this environment to a SettingFileGenerator.xml.

这是一项非常日常的工作,我问是否有一种智能"(自动)方式来比较我的默认绑定和某些特定环境的绑定,以将Xpath提取为不同的值?

This is quite routine job to do and I'm asking if there is a 'smart' (automatic) way to compare my default bindings and bindings of some specific environment to extract Xpaths to a values that differ?

推荐答案

是的.您可以在excel中打开settingsfileGenerator.xml,并可以在最左边的列中添加任意数量的变量,并在特定的环境列中添加它们的值.在主绑定文件中使用$ {variable_name},其中variable_name与您在excel最左边一栏中输入的值相同.

Yes that's correct. You can open the settingsfileGenerator.xml in excel and can add as many variables as you want in left most column and their values in specific environment columns. Use ${variable_name} in master binding file, where variable_name is same as value you have entered in excel left most column.

在btdf proj文件中,如果尚未添加以下属性,则应在PropertyGroup中添加

In your btdf proj file You should add following properties in PropertyGroup, if not there already

<RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
<IncludeMessagingBindings>True</IncludeMessagingBindings>
<UsingMasterBindings>True</UsingMasterBindings>

请注意,这是基于BTDF 5.0版

Please note, this is based on BTDF version 5.0

在InstallWizard.xml文件中,确保已定义ENV_SETTINGS环境变量,在替换绑定文件中的变量之前,MSI将使用该环境变量来选择特定的环境xml

In your InstallWizard.xml file make sure you have a ENV_SETTINGS environment variable defined which will be used by MSI to select the specific environment xml before replacing variables in binding file

<SetEnvUIConfigItem>
    <PromptText>Select the XML file that contains configuration information specific to this environment:</PromptText>
    <PromptValue></PromptValue>
    <ValueType>FileSelect</ValueType>
    <EnvironmentVarName>ENV_SETTINGS</EnvironmentVarName>
  </SetEnvUIConfigItem>

这篇关于生成BTDF设置文件生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆