msbuild - TFS 2010 上的构建和解决依赖关系的问题

标签 msbuild

我有一个在我的机器(和生产服务器)上运行良好的项目。
这是一个运行 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,以使构建运行,直到您确切地找到缺少哪些程序集。

关于msbuild - TFS 2010 上的构建和解决依赖关系的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3043801/

相关文章:

msbuild - 如何从正在处理的项目文件中访问msbuild命令行参数?

使用 msbuild 构建时出现 C# 版本错误,使用 Visual Studio 可以

asp.net - VSTS 构建以空构建工件结束

visual-studio-2008 - 是否有一个好的 Visual Studio 加载项可以启动 msbuild 目标?

msbuild - 通过 TFS 2012 构建无法显示有用的错误

.net - 编译后从 AssemblyInfo 中读取 AssemblyFileVersion

.net - msbuild .targets 文件中 ItemGroup 项的相对路径

visual-studio-2010 - 在解决方案文件上调用 TransformWebConfig

msbuild - 在 MSBuild 中获取 NuGet 包文件夹

svn - msbuild 社区任务和 Svn 提交