Master Binding MSI Deployment Error

Topics: Getting Started/Beginner
Aug 27, 2010 at 2:42 AM

Hi Tom,

I have been trying to follow your BasicMasterBindings Example, and have created my own solution and Built an MSI for it. In the wizard at the end I choose QA_settings.xml.

In my btdfproj file I have set the below:

<UsingMasterBindings>true</UsingMasterBindings>

When I run the MSI  wizard and choose QA_settings.xml (in the Deploy step), I am getting the below error.

"C:\Program Files\Test_50_BTSDeploy for BizTalk\1.0\Deployment\Test_50_BTSDeplo
y.Deployment.btdfproj" (default target) (1) ->
  C:\Program Files\Test_50_BTSDeploy for BizTalk\1.0\Deployment\Test_50_BTSDepl
oy.Deployment.btdfproj : error MSB4057: The target "QA" does not exist in the p
roject.

    0 Warning(s)
    1 Error(s)

As far as I can tell, I have set up the btdfproj correctly,and entered the info correctly in the settings spreadsheet. My  btdfproj is as below:

<?xml version="1.0" encoding="utf-8"?>
<!--
  Deployment Framework for BizTalk 5.0
  Copyright (C) 2008-2010 Thomas F. Abraham and Scott Colestock
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="QA">
  <PropertyGroup>
    <Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
    <Platform Condition="'$(Platform)' == ''">x86</Platform>
    <SchemaVersion>1.0</SchemaVersion>
    <ProjectName>Test_50_BTSDeploy</ProjectName>
    <ProjectVersion>1.0</ProjectVersion>
    <UsingMasterBindings>true</UsingMasterBindings>
    <IncludeSchemas>true</IncludeSchemas>
    <IncludeOrchestrations>true</IncludeOrchestrations>
    <IncludeTransforms>true</IncludeTransforms>
    <IncludePipelines>true</IncludePipelines>
  </PropertyGroup>
  <PropertyGroup>
    <!-- Properties related to building an MSI for server deployments -->
    <ProductId>3e8b7e75-87bc-42e2-848a-48ec6e9d4736</ProductId>
    <ProductUpgradeCode>6a56f835-da30-4088-916f-bcbda8e18c1d</ProductUpgradeCode>
    <ProductName>Test_50_BTSDeploy for BizTalk</ProductName>
    <ProductVersion>1.0.0</ProductVersion>
    <Manufacturer>Deployment Framework User</Manufacturer>
    <PackageDescription>Test_50_BTSDeploy</PackageDescription>
    <PackageComments>Test_50_BTSDeploy</PackageComments>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath>bin\Debug\</OutputPath>
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <!--<OutputPath>obj\Release\</OutputPath>-->
    <OutputPath>bin\Release\</OutputPath>
    <DeployPDBsToGac>true</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>
    <Schemas Include="BTSSchemas.dll">
      <!--    <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath> -->
      <!-- <LocationPath>..\BTSSchemas\bin\$(Configuration)</LocationPath> -->
      <LocationPath>..\BTSSchemas\bin\$(Configuration)</LocationPath>
    </Schemas>

    <Schemas Include="BTSProcessShipping.dll">
      <!--    <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath> -->
      <!-- <LocationPath>..\BTSProcessShipping\bin\$(Configuration)</LocationPath> -->
      <!--<LocationPath>..\BTSProcessShipping\obj\$(Configuration)</LocationPath>-->
      <LocationPath>..\BTSProcessShipping\bin\$(Configuration)</LocationPath>
    </Schemas>
   
  </ItemGroup>

  <ItemGroup>
    <Transforms Include="BTSMaps.dll">
      <!--    <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath> -->
     <!-- <LocationPath>..\BTSMaps\bin\$(Configuration)</LocationPath> -->
      <LocationPath>..\BTSMaps\bin\$(Configuration)</LocationPath>
    </Transforms>
  </ItemGroup>

  <ItemGroup>
    <Pipelines Include="BTSPipelines.dll">
      <!--    <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath> -->
     <!-- <LocationPath>..\BTSPipelines\bin\$(Configuration)</LocationPath> -->
      <LocationPath>..\BTSPipelines\bin\$(Configuration)</LocationPath>
    </Pipelines>
  </ItemGroup>

  <ItemGroup>
    <Orchestrations Include="BTSOrchestrations.dll">
      <!--    <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath> -->
      <!-- <LocationPath>..\BTSOrchestrations\bin\$(Configuration)</LocationPath> -->
      <LocationPath>..\BTSOrchestrations\bin\$(Configuration)</LocationPath>
    </Orchestrations>
  </ItemGroup>


  <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
  <!--
    The Deployment Framework automatically packages most files into the server install MSI.
    However, if there are special folders or files that you need to include in the MSI, you can
    copy them to the folder $(RedistDir) in the CustomRedist target.
  -->
  <Target Name="CustomRedist">
  </Target>
</Project>

Any ideas, as to what may be wrong?

Thanks,

Matt

 

 

 

Aug 27, 2010 at 2:56 AM

Hi tom,

Nevermind,

Had incorrectly set DefaultTargets="QA" , when should be set to DefaultTargets="Deploy"

Thanks,

Matt