<?xml version="1.0" encoding="utf-8"?>
<!-- 
  Deployment Framework for BizTalk
  Copyright (C) 2004-2012 Thomas F. Abraham and Scott Colestock
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer" ToolsVersion="4.0">
  <PropertyGroup>
    <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
    <Platform Condition="'$(Platform)' == ''">x86</Platform>
    <!-- Customization Generic Apps -->
    <IsGenericComponent>False</IsGenericComponent>
    <IntegrationCode>F017</IntegrationCode>
    <UseEnvSettingsDB>True</UseEnvSettingsDB>
    <!-- Customization SSO Data Store Credentials -->
    <SsoAppAdminGroup>KLG\BizTalk SSO Administrators_$(BTDFENV)</SsoAppAdminGroup>
    <SsoAppUserGroup>KLG\BizTalk SSO Administrators_$(BTDFENV)</SsoAppUserGroup>
    <!-- End Customization -->
    <SchemaVersion>1.0</SchemaVersion>
    <ProjectName>TM.TransSmart</ProjectName>
    <ProjectVersion>1.0</ProjectVersion>
    <SkipIISReset>True</SkipIISReset>
    <SkipHostInstancesRestart>True</SkipHostInstancesRestart>
    <IncludeSchemas>True</IncludeSchemas>
    <IncludeOrchestrations>False</IncludeOrchestrations>
    <IncludeTransforms>True</IncludeTransforms>
    <IncludePipelines>True</IncludePipelines>
    <IncludeComponents>True</IncludeComponents>
    <IncludePipelineComponents>True</IncludePipelineComponents>
    <IncludeCustomFunctoids>False</IncludeCustomFunctoids>
    <IncludeVocabAndRules>False</IncludeVocabAndRules>
    <IncludeVirtualDirectories>False</IncludeVirtualDirectories>
    <IncludeMessagingBindings>True</IncludeMessagingBindings>
    <IncludeDeploymentTest>False</IncludeDeploymentTest>
    <Includelog4net>False</Includelog4net>
    <IncludeSSO>True</IncludeSSO>
    <IncludeEsbItineraries>False</IncludeEsbItineraries>
    <IncludeBam>False</IncludeBam>
    <IncludeInstallUtilForComponents>False</IncludeInstallUtilForComponents>
    <UsingMasterBindings>True</UsingMasterBindings>
    <RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
    <ApplyXmlEscape>True</ApplyXmlEscape>
    <IncludeSettingsSpreadsheetInMsi>True</IncludeSettingsSpreadsheetInMsi>
    <StartApplicationOnDeploy>True</StartApplicationOnDeploy>
    <EnableAllReceiveLocationsOnDeploy>True</EnableAllReceiveLocationsOnDeploy>
    <StartReferencedApplicationsOnDeploy>True</StartReferencedApplicationsOnDeploy>
    <UseIsolatedAppDomain>False</UseIsolatedAppDomain>
    <EnableBizTalkExtendedLogging>False</EnableBizTalkExtendedLogging>
    <EnableBizTalkAssemblyValidation>False</EnableBizTalkAssemblyValidation>
    <EnableBizTalkCorrelationValidation>False</EnableBizTalkCorrelationValidation>
    <EnableBizTalkSchemaValidation>False</EnableBizTalkSchemaValidation>
  </PropertyGroup>
  <PropertyGroup>
    <!-- Properties related to building an MSI for server deployments -->
    <!-- BizTalk App Version Upgrade -->
    <!--   For each new product release to be deployed to your BizTalk servers: -->
    <!--     1) Increment ProductVersion -->
    <!--     2) Generate a new GUID and update ProductId with the new GUID -->
    <!--   This allows the new MSI to automatically uninstall (not undeploy!) the old MSI and install the new one. -->
    <ProductVersion>1.0.33</ProductVersion>
    <ProductId>6c62c5e2-4df2-4daf-b556-9a4d9bdea470</ProductId>
    <!-- BizTalk App Version Upgrade -->
    <ProductName>TM.TransSmart</ProductName>
    <Manufacturer>$(BTDFCOMPANYNAME) Deployment Framework User</Manufacturer>
    <PackageDescription>TM.TransSmart</PackageDescription>
    <PackageComments>TM.TransSmart</PackageComments>
	<BizTalkAppDescription>$(ProjectName)-$(ProductVersion) Deployed on: $([System.DateTime]::Now) By: $(USERNAME) </BizTalkAppDescription>
    <!-- NEVER change the ProductUpgradeCode. -->
    <ProductUpgradeCode>3716585f-6a4c-419e-a5c0-867ba4af9b00</ProductUpgradeCode>
  </PropertyGroup>
  <!-- Under TFS Team Build, set CustomizableOutDir property to true in TFS 2005/2008/2010 UpgradeTemplate. -->
  <!-- With a workflow build, copy the default template then modify the MSBuild task for the solution build. Set OutDir to blank and -->
  <!-- CommandLineArguments to String.Format("/p:SkipInvalidConfigurations=true;TeamBuildOutDir=""{0}"" {1}", BinariesDirectory, MSBuildArguments). -->
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Debug\</OutputPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' == ''">bin\Release\</OutputPath>
    <OutputPath Condition="'$(TeamBuildOutDir)' != ''">$(TeamBuildOutDir)</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Server'">
    <DeploymentFrameworkTargetsPath>Framework\</DeploymentFrameworkTargetsPath>
    <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->
    <DeployPDBsToGac>true</DeployPDBsToGac>
  </PropertyGroup>
  <ItemGroup>
    <PropsFromEnvSettings Include="SsoAppUserGroup;SsoAppAdminGroup;ESBLookupConnectionString;ESBTrackingConnectionString;B2BUsername;B2BPassword" />
    <AppsToReference Include="TM.Shared.Pipelines" />
    <AppsToReference Include="TM.Shared.Schemas" />
    <AppsToReference Include="TM.Shared.Schemas_v19A" />
    <AppsToReference Include="TM.Shared.PipelineComponents" />
  </ItemGroup>
  <!-- !!! TODO !!! -->
  <!-- Add ItemGroup elements that contain one or more Schemas, Orchestrations, Transforms, etc. elements that describe -->
  <!-- the specific artifacts in your solution that need to be deployed. Use IntelliSense as a guide. -->
  <ItemGroup>
    <Schemas Include="TM.TransSmart.Schemas.dll">
      <LocationPath>..\Schemas\bin\$(Configuration)</LocationPath>
    </Schemas>
    <Transforms Include="TM.TransSmart.Transforms.dll">
      <LocationPath>..\Transforms\bin\$(Configuration)</LocationPath>
    </Transforms>
    <PipelineComponents Include="TM.TransSmart.PipelineComponents.dll">
      <LocationPath>..\PipelineComponents\bin\$(Configuration)</LocationPath>
    </PipelineComponents>
    <Pipelines Include="TM.TransSmart.Pipelines.dll">
      <LocationPath>..\Pipelines\bin\$(Configuration)</LocationPath>
    </Pipelines>
    <Components Include="TM.TransSmart.Components.dll">
      <LocationPath>..\Components\bin\$(Configuration)</LocationPath>
    </Components>
  </ItemGroup>
  <!-- !!! TODO !!! -->
  <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
  <Import Project="$(BTDFEXTENSIONPATH)\Targets\1.0.0.\Custom.BizTalkDeploymentFramework.targets" />
  <!--
    The Deployment Framework automatically packages most files into the server install MSI.
    However, if there are special folders that you need to include in the MSI, you can
    copy them to the folder $(RedistDir) in the CustomRedist target.
    To include individual files, add an ItemGroup with AdditionalFiles elements.
  -->
  <Target Name="CustomRedist">
  </Target>
</Project>