This deployment method will only add BizTalk resources to the existing application without underpaying it or throwing an error during fresh deployment.
Step1:
<!
--Add the line in your BTDF Project in Node: Project >> PropertyGroup -->
<SkipRemoveApp>True</SkipRemoveApp>
Step2:
<!
--Add below lines in your Deployment.btdfproj file Assuming you have BizTalkAppName defined in a veriable -->
<Target Name="DeployAppDefinition" Condition="'$( SkipRemoveApp)' == 'False'">
<Exec Command="BTSTask.exe AddApp -ApplicationName:"$(BizTalkAppName)" -Description:"$(ProjectName)"" />
<AddAppReference ApplicationName="$(BizTalkAppName)" AppsToReference="@(AppsToReference)" Condition="%(Identity) == %(Identity) and '@(AppsToReference)' !=''"/>
</Target>
Happy coding..