MSBuild cannot create SSIS projects (.dtproj) because the format of these projects is before VS2010. Your best bet here is to get MSBuild to exit the SSIS project. You can create an empty C # project for this. Then open the .csproj file for the new project in a text editor and set the BeforeBuild parameter to the following:
<Target Name="BeforeBuild"> <Exec Command=""$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\@InstallDir)\devenv.exe" blah\blah.dtproj /Build" /> </Target>
Adjust the blah / blah.dtproj path for your project. This will run the VS2008 version of devenv to create the SSIS project.
The following is an example of what the entire .csproj file looks like:
<?xml version="1.0" encoding="utf-8"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="Build"> <PropertyGroup> <OutputPath>Bin</OutputPath> </PropertyGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Target Name="BeforeBuild"> <Exec Command=""$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\@InstallDir)\devenv.exe" blah\blah.dtproj /Build" /> </Target> </Project>
source share