警告:找不到DLL

Ker*_*ode 5 c# sql dll fxcop version

我有一个用C#编写的客户端程序,其中解决方案中的一个项目处理机器安装了SQL 2005的案例.

我已经添加了相关的DLL,但是我收到了警告:

CA0060 : The indirectly-referenced assembly 'Microsoft.SqlServer.ManagedDTS, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: d:\Any CPU\Bin\Debug\MyProgram.SSIS2005.dll.

根据Microsoft.SqlServer.ManagedDTS它的属性版本是9.0.3042.0,我不明白为什么它需要版本9.0.242.0.我不知道它是否相关,但版本Microsoft.SQLServer.DTSRuntimeWrap是9.0.242.0.

我试过了什么?

  • 删除和添加引用
  • 手动更改csproj文件中所需的版本
  • 我考虑过使用相同版本获取所有dll,但是没有在网上找到这样的源代码.

有任何想法吗?谢谢,KM

编辑:另一个细节,

  • 我的目标框架是.Net 4.0
  • 我已将'useLegacyV2RuntimeActivationPolicy'设置为true

Ker*_*ode 0

正如 @Mightymuke 在评论中提到的,Fuslogvw.exe显示加载了哪些 DLL。我的一个项目引用了 DLL,该 DLL 引用了旧版本的Microsoft.SqlServer.ManagedDTS.