I am tasked with building packages with a certain version or label and then deploying them to our production environment.
So, when I try a command line for msbuild, it complained that ssis packages are not supported. A suggestion was made that I use a blank c# project.
So, now I have this for the project file:
<?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">
<!-- Build the analysis SSIS project -->
<Exec Command=""C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" C:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\ETFG_Transfer.sln /Build Debug /project C:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\ETFG_Transfer.dtproj"
/>
</Target>
</Project>
Now I get an error when I issue this command line:
msbuild.exe "C:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\msbuild_projectfile3.dtproj" /l:FileLogger,Microsoft.Build.Engine;logfile=C:\Temp\ETFG_Transfer_Build.log;verbosity=Diagnostic;encoding=utf-8
"C:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\msbuild_projectfile3.dtproj" (def
ault target) (1) ->
(CoreCompile target) ->
CSC : warning CS2008: No source files specified [C:\ETL\SSIS\2005\ETFG_Transf
er\ETFG_Transfer\msbuild_projectfile3.dtproj]
"C:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\msbuild_projectfile3.dtproj" (def
ault target) (1) ->
(CoreCompile target) ->
CSC : error CS5001: Program 'c:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\obj
\Debug\msbuild_projectfile3.exe' does not contain a static 'Main' method suitab
le for an entry point [C:\ETL\SSIS\2005\ETFG_Transfer\ETFG_Transfer\msbuild_pro
jectfile3.dtproj]
1 Warning(s)
1 Error(s)
Thanks for the help!