msbuild – 在TFS 2010上构建问题并解决依赖关系问题

前端之家收集整理的这篇文章主要介绍了msbuild – 在TFS 2010上构建问题并解决依赖关系问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个在我的机器(和生产服务器)上运行良好的项目.
这是一个运行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,
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,
processorArchitecture=MSIL” or
retarget your application to a
framework version which contains
“Microsoft.VisualBasic.Compatibility,
PublicKeyToken=b03f5f7f11d50a3a”.
[d:\Builds\3\mySolution.sln]

一切都在我的机器上编译和运行,但构建服务器似乎很难.
我认为Third.Party.Assembly是用VB.net编写的.
由于程序集是第三方,我无法删除对“Microsoft.VisualBasic.Compatibility”的引用,因为我的计算机上没有收到任何警告,我真的可以运行v3.5吗?

有什么建议?

/麦

解决方法

如果您手动将项目放在构建服务器上,它会运行吗?基于错误消息,我将确保您在构建服务器计算机上安装了最新的.net框架并再次尝试.如果这不起作用,请尝试在构建服务器上安装VS2010,只是为了让构建运行,直到您确切地知道缺少哪些程序集.

猜你在找的设计模式相关文章