Add additional assemblies to the GAC using BTDF

Using the BizTalk Deployment Framework it is very easy to add additional assemblies to the GAC along with the rest of your application. Just add the following code to the BTDF project file:

<ItemGroup>
    <ExternalAssemblies Include="Assembly1.dll">
        <LocationPath>..PathToAssembly</LocationPath>
    </ExternalAssemblies>
    <ExternalAssemblies Include="OtherAssembly.dll">
        <LocationPath>C:SharedAssemblies</LocationPath>
    </ExternalAssemblies>
</ItemGroup>

One thing to note, is the position where this piece of code should be placed. The BTDF project file should be organized as this:
<PropertyGroup>’s
<ItemGroup>’s
<Import Project=”$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets” />

Leave a Reply

Your email address will not be published. Required fields are marked *