This topic assumes that you are following a common convention in BizTalk development where each assembly contains a single type of BizTalk artifact (e.g. an assembly for schemas, an assembly for orchestrations, etc.). If you are combining multiple types of BizTalk artifacts into a single assembly, see Assemblies with Multiple Artifact Types.
To deploy one or more assemblies that contain schemas, edit your Deployment Framework for BizTalk project file (.btdfproj) as follows:
1. Set the IncludeSchemas property to true
The property may be included in any PropertyGroup, but is commonly placed in the first PropertyGroup in the project file.
<PropertyGroup>
...
<IncludeSchemas>true</IncludeSchemas>
...
</PropertyGroup>
2. Add a Schemas ItemGroup
The following is a typical example that properly follows the common ItemGroup structure:
<ItemGroup>
<Schemas Include="$(ProjectName).Schemas.dll">
<LocationPath>..\Schemas\bin\$(Configuration)</LocationPath>
</Schemas>
</ItemGroup>
The following is the default configuration, which corresponds to the optional naming conventions. This default is in effect if you do not include any Schemas elements in your project file.
<ItemGroup>
<Schemas Include="$(ProjectName).Schemas.dll">
<LocationPath>..\$(ProjectName).Schemas\bin\$(Configuration)</LocationPath>
</Schemas>
</ItemGroup>
If you have more than one assembly that contains schemas, then repeat the <Schemas> element for each assembly (usually within the same ItemGroup).
Created with the Personal Edition of HelpNDoc: Easy EPub and documentation editor