-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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=""$(Gacutil)" /f /i "@(SchemasQualified)"" Condition="'$(IncludeSchemas)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" /> | |
<Exec Command=""$(Gacutil)" /f /i "@(PipelinesQualified)"" Condition="'$(IncludePipelines)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" /> | |
<Exec Command=""$(Gacutil)" /f /i "@(TransformsQualified)"" Condition="'$(IncludeTransforms)' == 'true' and '$(DeployBizTalkMgmtDB)' == 'false' and '%(Identity)' == '%(Identity)'" /> | |
<Exec Command=""$(Gacutil)" /f /i "@(OrchestrationsQualified)"" 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 "..\SolutionItems\SQL\Create_ESB_BamViews.sql"" /> | |
<!-- ================================================================================================================================== --> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment