我有一个在我的机器(和生产服务器)上运行良好的项目.
这是一个运行C#3.5的VS2010项目.
当让我的构建服务器构建解决方案时,它无法解决我的第三方dll的问题.
错误信息:
C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.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:Builds3mySolution.sln]
一切都在我的机器上编译和运行,但构建服务器似乎很难. 我认为Third.Party.Assembly是用VB.net编写的. 由于程序集是第三方,我无法删除对“Microsoft.VisualBasic.Compatibility”的引用,因为我的计算机上没有收到任何警告,我真的可以运行v3.5吗?
有什么建议?
/麦
解决方法
如果您手动将项目放在构建服务器上,它会运行吗?基于错误消息,我将确保您在构建服务器计算机上安装了最新的.net框架并再次尝试.如果这不起作用,请尝试在构建服务器上安装VS2010,只是为了让构建运行,直到您确切地知道缺少哪些程序集.
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|