You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
11KB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. Deployment Framework for BizTalk
  4. Copyright (C) Thomas F. Abraham, Scott Colestock
  5. C:\Program Files (x86)\Deployment Framework for BizTalk 5.7\Developer\ProjectTemplate
  6. -->
  7. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer">
  8. <PropertyGroup>
  9. <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
  10. <Platform Condition="'$(Platform)' == ''">x86</Platform>
  11. <!--Customization Generic Apps-->
  12. <IsGenericComponent>False</IsGenericComponent>
  13. <IntegrationCode>F017</IntegrationCode>
  14. <UseEnvSettingsDB>True</UseEnvSettingsDB>
  15. <!-- Customization SSO Data Store Credentials -->
  16. <SsoAppAdminGroup>$(SsoAppAdmin2016)</SsoAppAdminGroup>
  17. <SsoAppUserGroup>$(SsoAppAdmin2016)</SsoAppUserGroup>
  18. <!--End Customization-->
  19. <SchemaVersion>1.0</SchemaVersion>
  20. <ProjectVersion>1.0</ProjectVersion>
  21. <ProjectName>KLG.Extern</ProjectName>
  22. <IncludeComponents>True</IncludeComponents>
  23. <IncludePipelineComponents>False</IncludePipelineComponents>
  24. <IncludePipelines>False</IncludePipelines>
  25. <IncludeOrchestrations>True</IncludeOrchestrations>
  26. <IncludeSchemas>True</IncludeSchemas>
  27. <IncludeTransforms>True</IncludeTransforms>
  28. <IncludeMessagingBindings>True</IncludeMessagingBindings>
  29. <UsingMasterBindings>True</UsingMasterBindings>
  30. <RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
  31. <ApplyXmlEscape>True</ApplyXmlEscape>
  32. <IncludeSettingsSpreadsheetInMsi>False</IncludeSettingsSpreadsheetInMsi>
  33. <SkipIISReset>True</SkipIISReset>
  34. <EnableAllReceiveLocationsOnDeploy>False</EnableAllReceiveLocationsOnDeploy>
  35. <IncludeSSO>True</IncludeSSO>
  36. <SkipHostInstancesRestart>True</SkipHostInstancesRestart>
  37. </PropertyGroup>
  38. <PropertyGroup>
  39. <!-- Properties related to building an MSI for server deployments -->
  40. <!-- BizTalk App Version Upgrade -->
  41. <!-- For each new product release to be deployed to your BizTalk servers: -->
  42. <!-- 1) Increment ProductVersion -->
  43. <!-- 2) Generate a new GUID and update ProductId with the new GUID -->
  44. <!-- This allows the new MSI to automatically uninstall (not undeploy!) the old MSI and install the new one. -->
  45. <ProductVersion>3.0.43</ProductVersion>
  46. <PackageRevisionLog>Migratie 2016</PackageRevisionLog>
  47. <ProductId>8ff228dd-667e-4189-a9bf-f5ec4426258c</ProductId>
  48. <ProductName>TM.Bosman</ProductName>
  49. <ProductUpgradeCode>8180e568-5f30-455f-a294-23f08f315d61</ProductUpgradeCode>
  50. <Manufacturer>KLG EDI Team</Manufacturer>
  51. <PackageDescription>$(ProductName)</PackageDescription>
  52. <PackageComments>$(ProductName)</PackageComments>
  53. <BizTalkAppDescription>Last Deployment: $(ProductName)-$(ProductVersion) on: $([System.DateTime]::Now) By: $(USERNAME)</BizTalkAppDescription>
  54. </PropertyGroup>
  55. <!-- Under TFS Team Build, set CustomizableOutDir property to true in TFS 2005/2008/2010 UpgradeTemplate. -->
  56. <!-- With a workflow build, copy the default template then modify the MSBuild task for the solution build. Set OutDir to blank and -->
  57. <!-- CommandLineArguments to String.Format("/p:SkipInvalidConfigurations=true;TeamBuildOutDir=""{0}"" {1}", BinariesDirectory, MSBuildArguments). -->
  58. <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
  59. <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
  60. <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Debug\</OutputPath>
  61. <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
  62. <DeployPDBsToGac>false</DeployPDBsToGac>
  63. </PropertyGroup>
  64. <PropertyGroup Condition="'$(Configuration)' == 'Release'">
  65. <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
  66. <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Release\</OutputPath>
  67. <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
  68. <DeployPDBsToGac>false</DeployPDBsToGac>
  69. </PropertyGroup>
  70. <PropertyGroup Condition="'$(Configuration)' == 'Server'">
  71. <DeploymentFrameworkTargetsPath>Framework\</DeploymentFrameworkTargetsPath>
  72. <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->
  73. <DeployPDBsToGac>true</DeployPDBsToGac>
  74. </PropertyGroup>
  75. <ItemGroup>
  76. <PropsFromEnvSettings Include="SsoAppUserGroup;SsoAppAdminGroup;ESBLookupConnectionString2016;ESBTrackingConnectionString;B2BUsername;B2BPassword"/>
  77. <AppsToReference Include="KLG.Intern"/>
  78. </ItemGroup>
  79. <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets"/>
  80. <!-- ============ START Deployment OVERRIDE ============ -->
  81. <Import Project="$(BTDFEXTENSIONPATH)\Targets\1.0.0\Custom.BizTalkDeploymentFramework.targets"/>
  82. <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.Redeploy.targets"/>
  83. <!--
  84. The Deployment Framework automatically packages most files into the server install MSI.
  85. However, if there are special folders that you need to include in the MSI, you can
  86. copy them to the folder $(RedistDir) in the CustomRedist target.
  87. To include individual files, add an ItemGroup with AdditionalFiles elements.
  88. -->
  89. <Target Name="UndeployAppDefinition" Condition="'$(SkipUndeploy)' == 'false'" DependsOnTargets="PrepareAppForUndeploy">
  90. <Message Text="-&gt; Override UndeployAppDefinition (no application removal is done!)"/>
  91. <Exec Command="BTSTask.exe RemoveResource -ApplicationName:&quot;$(BizTalkAppName)&quot; -Luid:&quot;$(ProductName).Orchestrations, Version=3.0.3.0, Culture=neutral, PublicKeyToken=$(ProductPublicKey)&quot;" Condition="'$(AppExists)' == 'true'" ContinueOnError="true" />
  92. <Exec Command="BTSTask.exe RemoveResource -ApplicationName:&quot;$(BizTalkAppName)&quot; -Luid:&quot;$(ProductName).Transforms, Version=3.0.31.0, Culture=neutral, PublicKeyToken=$(ProductPublicKey)&quot;" Condition="'$(AppExists)' == 'true'" ContinueOnError="true"/>
  93. <Exec Command="BTSTask.exe RemoveResource -ApplicationName:&quot;$(BizTalkAppName)&quot; -Luid:&quot;$(ProductName).Schemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=$(ProductPublicKey)&quot;" Condition="'$(AppExists)' == 'true'" ContinueOnError="true"/>
  94. <Exec Command="BTSTask.exe RemoveResource -ApplicationName:&quot;$(BizTalkAppName)&quot; -Luid:&quot;$(ProductName).Components, Version=3.0.0.0, Culture=neutral, PublicKeyToken=$(ProductPublicKey)&quot;" Condition="'$(AppExists)' == 'true'" ContinueOnError="true"/>
  95. </Target>
  96. <Target Name="StopApplication" DependsOnTargets="VerifyBizTalkAppExists">
  97. <Message Text="-&gt; Override StopApplication"/>
  98. <!--Stop Orchestrations-->
  99. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="" ReceivePortName="" OrchestrationName="TM.Bosman.Orchestrations.TM_Bosman_Orchestrations_IFCSUM" Condition="'$(AppExists)' == 'true'"/>
  100. <!--Stop Send Ports (optional remove mapping)-->
  101. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="TM.Bosman.Orchestrations_3.0.3.0_TM.Bosman.Orchestrations.TM_Bosman_Orchestrations_IFCSUM_Mail_Send_ef8f53020aeb0dca" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  102. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="TM.Bosman: TM.Shared.OrderStatus_to_TM.Bosman.IFTSTA" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  103. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="TM.Bosman: TM.Bosman.Reference.Administration" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  104. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="TM.Bosman: Orchestration_TM.Shared.Order" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  105. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="TM.Bosman: Orchestration_TM.Shared.Order_Consolidation.ToDo" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  106. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="RemoveOutboundTransformFromSendPort" SendPortName="TM.Bosman: TM.Shared.OrderStatus_to_TM.Bosman.IFTSTA" ReceivePortName="" OrchestrationName="" TransformName="TM.Bosman.Transforms.TM_Shared_OrderStatus_to_TM_Bosman_IFTSTA" Condition="'$(AppExists)' == 'true'"/>
  107. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="RemoveOutboundTransformFromSendPort" SendPortName="TM.Bosman: TM.Bosman.Reference.Administration" ReceivePortName="" OrchestrationName="" TransformName="TM.Bosman.Transforms.TM_Bosman_Reference_Administration" Condition="'$(AppExists)' == 'true'"/>
  108. <!--Stop Receive Ports (optional remove mapping)-->
  109. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Stop" SendPortName="" ReceivePortName="TM.Bosman: TM.Bosman.IFCSUM_Orchestration" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  110. <!--<ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="RemoveInboundTransformFromReceivePort" SendPortName="" ReceivePortName="ReceivePortExample" OrchestrationName="" TransformName="ReceivePortTransformExample" Condition="'$(AppExists)' == 'true'"/>-->
  111. </Target>
  112. <Target Name="StartApplication" Condition="'$(StartApplicationOnDeploy)' == 'true'">
  113. <Message Text="-&gt; Override StartApplication"/>
  114. <Message Text="Starting $(BizTalkAppName) application at $(StartApplicationTime)."/>
  115. <Message Text="Note: Starting the app may take 5-10 secs PER ORCHESTRATION. Please wait..."/>
  116. <!--Start Send Ports-->
  117. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="TM.Bosman.Orchestrations_3.0.3.0_TM.Bosman.Orchestrations.TM_Bosman_Orchestrations_IFCSUM_Mail_Send_ef8f53020aeb0dca" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  118. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="TM.Bosman: TM.Shared.OrderStatus_to_TM.Bosman.IFTSTA" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  119. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="TM.Bosman: TM.Bosman.Reference.Administration" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  120. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="TM.Bosman: Orchestration_TM.Shared.Order" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  121. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="TM.Bosman: Orchestration_TM.Shared.Order_Consolidation.ToDo" ReceivePortName="" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  122. <!--Start Receive Ports-->
  123. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="" ReceivePortName="TM.Bosman: TM.Bosman.IFCSUM_Orchestration" OrchestrationName="" Condition="'$(AppExists)' == 'true'"/>
  124. <!--Start Orchestrations-->
  125. <ControlBizTalkArtefacts ApplicationName="$(BizTalkAppName)" Command="Start" SendPortName="" ReceivePortName="" OrchestrationName="TM.Bosman.Orchestrations.TM_Bosman_Orchestrations_IFCSUM" Condition="'$(AppExists)' == 'true'"/>
  126. </Target>
  127. <!-- ============ END Deployment OVERRIDE ============ -->
  128. </Project>