Skip to content

Instantly share code, notes, and snippets.

@mattcorr
Created October 11, 2015 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattcorr/c860898f58169dc7369d to your computer and use it in GitHub Desktop.
Save mattcorr/c860898f58169dc7369d to your computer and use it in GitHub Desktop.
Sample Deployment.btdfproj file with CustomPostDeployTarget defined and containing the workaround for if DeployBizTalkMgmtDB is false
<Target Name="CustomPostDeployTarget">
<!-- Workaround for BTDF not deploying Artefacts to GAC when DeployBizTalkMgmtDB is false -->
<Message Text="Pre-deploying BizTalk Artefact DLLs into the GAC before rest of CustomPostDeployTarget executes..." Condition="'$(DeployBizTalkMgmtDB)' == 'false'"/>
<Exec Command="&quot;$(Gacutil)&quot; /f /i &quot;@(SchemasQualified)&quot;" Condition="'$(IncludeSchemas)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" />
<Exec Command="&quot;$(Gacutil)&quot; /f /i &quot;@(PipelinesQualified)&quot;" Condition="'$(IncludePipelines)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" />
<Exec Command="&quot;$(Gacutil)&quot; /f /i &quot;@(TransformsQualified)&quot;" Condition="'$(IncludeTransforms)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" />
<Exec Command="&quot;$(Gacutil)&quot; /f /i &quot;@(OrchestrationsQualified)&quot;" Condition="'$(IncludeOrchestrations)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" />
<!-- ================================================================================================================================== -->
<Message Text="Running SQL scripts for $(ProjectName)..." Condition="'$(DeployBizTalkMgmtDB)' == 'true'"/>
<!-- Only run the SQL QUery if the BizTalk BAM Datasource variable is set-->
<Exec Condition="'$(BizTalkBAM_DataSource)' != '#{BizTalkBAM_DataSource}' and '$(DeployBizTalkMgmtDB)' == 'true'" Command="sqlcmd.exe -S $(BizTalkBAM_DataSource) -d BAMPrimaryImport -E -i &quot;..\SolutionItems\SQL\Create_ESB_BamViews.sql&quot;" />
<!-- ================================================================================================================================== -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment