QualityToolsPackage 在构建中加载失败?

发布于 2024-10-12 16:34:32 字数 456 浏览 7 评论 0原文

我正在使用 Bamboo [来自 Altassian],它使用 devenv.com 构建器来构建解决方案文件。目前,我的构建中似乎遇到了“错误”错误 - 我试图自己解决但无法解决 - 所以我想我会问。

每个构建都正常成功 - 没有由代码引起的错误 - 但似乎反而给出了这个错误

程序包“Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage、Microsoft.VisualStudio.QualityTools.TestCaseManagement、Version=10.0.0.0、Culture=neutral、PublicKeyToken=b03f5f7f11d50a3a”加载失败。

我不知道为什么这会在 devenv.com 环境中引起问题,并且我不知道如何通过某些构建命令“忽略”此错误?

I am using Bamboo [from Altassian] and it uses the devenv.com builder to build solution files. Currently, I seem to be getting a "false" error in my builds - that I've tried to solve by myself but just can't - so I thought I would ask.

Each build succeeds normally - without errors stemming from code - but seems to instead give this error

Package 'Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage, Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed to load.

I've no idea why this is causing problems in the devenv.com environment and I can't figure out either how to "ignore" this error by some build command?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

向地狱狂奔 2024-10-19 16:34:32

试试这个(来自 MSFT 支持)

您可以检查 dll 是否在全局程序集缓存中(打开 VS 2010 命令提示符

(Start | All Programs | Microsoft Visual Studio 10.0 | Visual Studio Tools))

键入

Gacutil –l > list.txt

Notepad list.txt

您是否看到类似的条目

Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL

如果是这样,请从同一命令提示符运行 fuslogvw,转到设置,选择将绑定失败记录到磁盘,然后选择确定

运行命令行

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com /Build "Release|Mixed Platforms" "D:\Builds\19\Test VizXView\VizXView v1.8 Test Release Build - Weekly\Sources\VizXView v1.8\VizXView 1.8.sln"

单击fuslogvw中的刷新按钮我们是否收到任何绑定错误?

Try this ( from MSFT support )

Can you check if the dll is in the global assembly cache (open a VS 2010 command prompt

(Start | All Programs | Microsoft Visual Studio 10.0 | Visual Studio Tools))

Type in

Gacutil –l > list.txt

Notepad list.txt

Do you see an entry like

Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL

If so, from the same command prompt, run fuslogvw, go to settings, select log bind failures to disk, select ok

Run your command line

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com /Build "Release|Mixed Platforms" "D:\Builds\19\Test VizXView\VizXView v1.8 Test Release Build - Weekly\Sources\VizXView v1.8\VizXView 1.8.sln"

Click on the refresh button in fuslogvw. Do we get any bind errors?

守望孤独 2024-10-19 16:34:32

我遇到了与在使用 devenv.exe(而不是 devenv.com)的构建服务器上运行单元测试相关的类似问题。我在构建服务器上安装了一个高级 VS,但我用 Ultimate 编写了单元测试(它“有”负载测试,即使我没有使用它)。我使用 fusion 查看器发现丢失的 dll 是 LoadTest.dll,我将其从笔记本电脑复制到构建服务器,我还删除了解决方案中版本控制中的引用:*.vsmdi 和 *.testsettings(它们是已弃用),我从构建定义中删除了对 .testsettings 文件的引用。

我的猜测是,即使我没有运行加载单元测试,构建代理也会尝试加载 LoadTest 库以防万一。希望有助于

编辑 ---

好吧,我自己的问题是我的笔记本电脑上同时安装了 vs2010 和 vs2013。当我将第一个测试项目添加到 VS2010 解决方案时,添加的项目实际上依赖于 2013 版本的 UnitTestFramework.dll。我的构建服务器上只有 vs2010,所以我收到了缺少程序集的错误。将参考切换到 2010 版本修复了此问题。

I had a similar issue related to running unit tests on a build server that was using devenv.exe (not devenv.com). I had a premium VS installed on the build server but I'd written the unit tests with ultimate (which 'has' load testing, even tho I'd not used it). I used fusion viewer to work out that the missing dll was LoadTest.dll which I copied from my laptop to the buildserver, I also removed references in my solution that were in version control to: *.vsmdi and *.testsettings (they're deprecated) and I removed from the build def a reference to a .testsettings file.

My guess would be that even though I wasn't running a load unit test the build agent was trying to load the LoadTest libs just in case. Hope that helps

edit ---

ok, my own problem here was that I've got both vs2010 and vs2013 on my laptop. When I added the first test project to my VS2010 solution, the project added actually has a dependency on the 2013 version of the UnitTestFramework.dll. My build server only has vs2010 on it so I got the missing assembly error. Switching the reference to the 2010 version fixed this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文