Azure Devops使用.Netcore应用程序和性能测试构建错误 [英] Azure Devops Build error with .Netcore app and Performance Test

查看:95
本文介绍了Azure Devops使用.Netcore应用程序和性能测试构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我已经在根级别的.Net Core应用程序中添加了性能/负载测试。在构建说下面的命名空间不存在时,我收到错误。要添加我的负载测试中有一个需要程序集的插件。

解决方案

嗨ralk0023,


感谢您的联系!


由于您收到警告而发生错误:


" ;无法加载文件或程序集'Microsoft.VisualStudio.QualityTools.WebTestFramework'"


"无法加载文件或程序集'Microsoft.IdentityModel.Clients.ActiveDirectory'"


要解决此问题,请确保您的实际项目也有上述参考。


https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started- nuget?view = azure-devops


尝试将Microsoft.IdentityModel.Clients.ActiveDirectory和Microsoft.VisualStudio.QualityTools.WebTestFramework nuget包添加到正在执行的程序集中。


https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory/


https://www.nuget.org/packages/Microsoft.VisualStudio.QualityTools.WebTestFramework/


要获得其他帮助,您可以在  开发人员
社区
,获得建议  Stack
溢出
,获得支持  Azure
DevOps支持


Hi all,

I have added a performance/load test to my .Net Core app at the root level. I get an error during building saying the following namespaces do not exist. To add I have a plugin in my load test which needs the assemblies.

解决方案

Hi ralk0023,

Thanks for reaching out!

The errors occur because of the warnings that you get:

"Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.WebTestFramework'"

"Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory'"

To resolve this make sure you have the above references present for your actual project as well.

https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops

Try to add the Microsoft.IdentityModel.Clients.ActiveDirectory and Microsoft.VisualStudio.QualityTools.WebTestFramework nuget packages to the executing assembly.

https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory/

https://www.nuget.org/packages/Microsoft.VisualStudio.QualityTools.WebTestFramework/

For additional help, you can report a problem or provide a suggestion about Azure DevOps on Developer Community, get advice on Stack Overflow, and get support on Azure DevOps Support.


这篇关于Azure Devops使用.Netcore应用程序和性能测试构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆