Step 3: Customize the BTDF Project File

Parent Previous Next

You should now have the HelloWorld solution from C:\BTDF\Walkthrough1 open in Visual Studio and successfully built, with the newly created Deployment Framework for BizTalk project files added to Solution Explorer.  The next step is to customize the Deployment Framework for BizTalk project file.


Step 1: Configure the Schemas ItemGroup to point to the HelloWorld assembly

In order to deploy a BizTalk assembly (and any other files that you may include in a deployment), you must tell the Deployment Framework for BizTalk where to find your application's files.


1a. In Solution Explorer, double-click Deployment.btdfproj to open it in the text/XML editor.


1b. Locate the XML element <Schemas Include="YourSchemas.dll">.  This is a placeholder added by the Add New Project wizard.


1c. In this application, our BizTalk assembly is simply named HelloWorld.dll.  Replace the default attribute value for Include from YourSchemas.dll to HelloWorld.dll.


File paths are always relative to the deployment project folder.  In this case, the path to HelloWorld.dll is ..\HelloWorld\bin\Debug.  The default path in LocationPath is ..\$(ProjectName)\bin\$(Configuration).  The two $() references are MSBuild properties.  $(Configuration) is automatically set to Debug or Release based on the active solution configuration.  $(ProjectName) already has a value of HelloWorld -- you'll find the element <ProjectName>HelloWorld</ProjectName> near the top of the project file.  In this case, the default path is perfect and does not need to be modified.


You should now have this XML:


<ItemGroup>

 <Schemas Include="HelloWorld.dll">

   <LocationPath>..\$(ProjectName)\bin\$(Configuration)</LocationPath>

 </Schemas>

</ItemGroup>


Save the changes to Deployment.btdfproj.


Step 2: Customize other project settings

At this point you would add additional ItemGroup elements to point to your other artifacts such as schemas assemblies, BRE policy or vocabulary XML files, etc.  IntelliSense is readily available to help you create the correct XML structure.  The HelloWorld application is so simple that there is nothing else to add, so we do not need to do additional configuration for this walkthrough.


Created with the Personal Edition of HelpNDoc: Create HTML Help, DOC, PDF and print manuals from 1 single source