Created
September 4, 2013 06:19
-
-
Save kulmam92/6433329 to your computer and use it in GitHub Desktop.
MSBuild build script to build SSIS project using Microsoft.SqlServer.IntegrationServices.Build.dll I copied this from the below link and modified a little bit to make it work in my environment.
msbuild script for building and deploying a SSIS .ispac file(http://pastebin.com/kbj8tRUz)
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
<?xml version="1.0" encoding="Windows-1252"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="SSISBuild;SSISDeploy"> | |
<!--Requires a property called $(SSISProj) to be defined when this script is called--> | |
<UsingTask TaskName="DeploymentFileCompilerTask" AssemblyFile="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\Microsoft.SqlServer.IntegrationServices.Build.dll" /> | |
<Target Name="SSISBuild" Condition="'$(SSISProj)' != ''"> | |
<PropertyGroup> | |
<SSISProjPath>.\$(SSISProj)\$(SSISProj).dtproj</SSISProjPath> | |
</PropertyGroup> | |
<Message Text="**************Building SSIS project: $(SSISProjPath) for configuration: $(CONFIGURATION)**************" /> | |
<DeploymentFileCompilerTask InputProject="$(SSISProjPath)" Configuration="$(CONFIGURATION)" ProtectionLevel="DontSaveSensitive"> | |
</DeploymentFileCompilerTask> | |
</Target> | |
<UsingTask TaskName="DeployProjectToCatalogTask" AssemblyFile="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\Microsoft.SqlServer.IntegrationServices.Build.dll" /> | |
<Target Name="SSISDeploy" Condition="'$(SSISProj)' != ''"> | |
<Message Text="**************Publishing SSIS project: $(SSISProj) to: $(SSISServer) to folder: $(PROJECTNAME)**************" /> | |
<PropertyGroup> | |
<ISPac>.\$(SSISProj)\bin\$(CONFIGURATION)\$(SSISProj).ispac</ISPac> | |
</PropertyGroup> | |
<DeployProjectToCatalogTask DeploymentFile="$(ISPac)" Instance="$(SSISServer)" Folder="$(PROJECTNAME)" CreateFolder="true" /> | |
</Target> | |
<Import Project="C:\MSBuild\.nuget\DeployNugetForDB.targets" /> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to understand what and where , parameters needs to be passed, could you help me understanding the above code, an example for this would be very helpful here.