英文:
How to deploy two services under two different applications in IIS using BTDF
问题
我有一个要求,在IIS中使用BTDF部署两个不同的服务到两个不同的应用程序下。
使用 **IISMetabasePath** ,我可以部署多个服务,但它们将部署在IIS中相同的应用程序/虚拟目录下。我该如何将 **IISMetabasePath** 参数化,类似于:
```xml
<IISMetabasePath>IIS://localhost/w3svc/{AppId}/Root</IISMetabasePath>
这样我就可以在 VDirList 配置中指定 Id。
目前,我的 VDirList 配置如下:
<ItemGroup>
<VDirList Include="*">
<Vdir>GetCTCNumber</Vdir>
<Physdir>..\CTCNumberService</Physdir>
<AppPool>CTCNumberAppPool</AppPool>
<AppPoolNetVersion>v4.0</AppPoolNetVersion>
</VDirList>
<VDirList Include="*">
<Vdir>GetCTCusingTICCode</Vdir>
<Physdir>..\TICCodeService</Physdir>
<AppPool>TICCodeAppPool</AppPool>
<AppPoolNetVersion>v4.0</AppPoolNetVersion>
</VDirList>
</ItemGroup>
感谢回复!我尝试过将 IISMetabasePath 参数化,但无法找到从 VDirList 传递值给它的方法。
<details>
<summary>英文:</summary>
I have a requirement wherein I need to deploy two different services under two different application in IIS using BTDF.
`<IISMetabasePath>IIS://localhost/w3svc/1/Root</IISMetabasePath>`
using **IISMetabasePath** I can deploy multiple services but that will be deployed under same application/virtual directory in IIS, How can I make the IISMetabasePath parametric something like
`<IISMetabasePath>IIS://localhost/w3svc/{AppId}/Root</IISMetabasePath>`
so that I can specify the Id in **VDirList** configuration
Currently I have below **VDirList** config
<ItemGroup>
<VDirList Include="*">
<Vdir>GetCTCNumber</Vdir>
<Physdir>..\CTCNumberService</Physdir>
<AppPool>CTCNumberAppPool</AppPool>
<AppPoolNetVersion>v4.0</AppPoolNetVersion>
</VDirList>
<VDirList Include="*">
<Vdir>GetCTCusingTICCode</Vdir>
<Physdir>..\TICCodeService</Physdir>
<AppPool>TICCodeAppPool</AppPool>
<AppPoolNetVersion>v4.0</AppPoolNetVersion>
</VDirList>
</ItemGroup>
Appreciate the responses!
Thanks.
I have tried doing **IISMEtabasePath** parametric however I could not find the ways I could pass values to it from **VDirList**
</details>
# 答案1
**得分**: 0
VDirList功能已弃用,除了向后兼容性之外,不应使用。相反,您应该使用IISApp和IISAppPool。
您没有提到您使用的BTDF版本,但您可以参考Framework附带的IIS示例应用程序。您还会在BTDF文档中找到对IISApp/IISAppPool的详细说明。
[这是一个链接][1]到v5.7版本的PDF格式文档。
[1]: https://github.com/BTDF/DeploymentFramework/releases/download/v5.7.0/DeploymentFrameworkForBizTalkDocsV5_7.pdf
<details>
<summary>英文:</summary>
The VDirList functionality is deprecated and should not be used except for backwards compatibility. Instead, you should use IISApp and IISAppPool.
You didn't say which version of BTDF you are using, but you can refer to the IIS sample application that is included with the Framework. You'll also find IISApp/IISAppPool well-documented in the BTDF docs.
[Here's a link][1] to the v5.7 version of the docs in PDF format.
[1]: https://github.com/BTDF/DeploymentFramework/releases/download/v5.7.0/DeploymentFrameworkForBizTalkDocsV5_7.pdf
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论