这是一个运行C#3.5的VS2010项目.
当让我的构建服务器构建解决方案时,它无法解决我的第三方dll的问题.
错误信息:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1360,9):
warning MSB3268: The primary reference
“Third.Party.Assembly,
Version=50.11.2.0, Culture=neutral,
PublicKeyToken=0561a7c6dbd6f0ea,
processorArchitecture=MSIL” could not
be resolved because it has an indirect
dependency on the framework assembly
“Microsoft.VisualBasic.Compatibility,
Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a” which
could not be resolved in the currently
targeted framework.
“.NETFramework,Version=v3.5”. To
resolve this problem, either remove
the reference “Third.Party.Assembly,
Version=50.11.2.0, Culture=neutral,
PublicKeyToken=0561a7c6dbd6f0ea,
processorArchitecture=MSIL” or
retarget your application to a
framework version which contains
“Microsoft.VisualBasic.Compatibility,
Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a”.
[d:\Builds\3\mySolution.sln]
一切都在我的机器上编译和运行,但构建服务器似乎很难.
我认为Third.Party.Assembly是用VB.net编写的.
由于程序集是第三方,我无法删除对“Microsoft.VisualBasic.Compatibility”的引用,因为我的计算机上没有收到任何警告,我真的可以运行v3.5吗?
有什么建议?
/麦
如果您手动将项目放在构建服务器上,它会运行吗?基于错误消息,我将确保您在构建服务器计算机上安装了最新的.net框架并再次尝试.如果这不起作用,请尝试在构建服务器上安装VS2010,只是为了让构建运行,直到您确切地知道缺少哪些程序集.