項(xiàng)目里需要使用程序創(chuàng)建SSIS包,結(jié)果在VS2010里可以添加Microsoft.SQLServer.ManagedDTS.dll引用,寫代碼也有智能提示,但是一編譯就告訴你引用不正確。有個(gè)警告里提示“
warning MSB3258: The primary reference "Microsoft.SQLServer.ManagedDTS, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "2.0.3600.0" than the version "2.0.0.0" in the current target framework.
”