Visual Studio 15.8.1未运行MS单元测试 [英] Visual Studio 15.8.1 not running MS unit tests

查看:86
本文介绍了Visual Studio 15.8.1未运行MS单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将Visual Studio更新到最新版本时,我的一个测试项目停止运行测试并输出以下消息:

When I updated Visual Studio to the latest version, 1 of my test projects stopped running tests and outputted this message:

测试项目{}没有引用任何.NET NuGet适配器.测试发现或执行可能不适用于该项目.建议在解决方案的每个测试项目中引用NuGet测试适配器.

Test project {} does not reference any .NET NuGet adapter. Test discovery or execution might not work for this project. It is recommended to reference NuGet test adapters in each test project in the solution.

更新:我正在使用MS Test,而不是像Nunit或Xunit之类的任何其他测试框架.

UPDATED: I was using MS Test as opposed to any other test frameworks like Nunit or Xunit.

推荐答案

我必须添加以下Nuget软件包:

I had to add the following Nuget packages:

MSTest.TestAdapter
MSTest.TestFramework
Microsoft.NET.Test.Sdk

Visual Studio发行说明

这篇关于Visual Studio 15.8.1未运行MS单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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