'dotnet test' 没有发现任何测试
'dotnet test' doesn't discover any test
我有一个项目,我无法 运行 使用 dotnet test
进行测试,而我的同事可以。我收到的错误消息是
System.IO.FileNotFoundException: No test is available in C:\projects\...\bin\Debug\netcoreapp1.1\Test.AnalyzeFirmwareRollout.dll. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk" and framework version settings are appropriate and try again.
该项目确实有对 Microsoft.NET.Test.Sdk 的引用,目标框架是
<TargetFramework>netcoreapp1.1</TargetFramework>
在 csproj 文件中。任何想法这里可能出了什么问题?
对于从命令行进行的 运行 xUnit 测试,您将需要 xunit.runner.console 包。
我有一个项目,我无法 运行 使用 dotnet test
进行测试,而我的同事可以。我收到的错误消息是
System.IO.FileNotFoundException: No test is available in C:\projects\...\bin\Debug\netcoreapp1.1\Test.AnalyzeFirmwareRollout.dll. Make sure test project has a nuget reference of package "Microsoft.NET.Test.Sdk" and framework version settings are appropriate and try again.
该项目确实有对 Microsoft.NET.Test.Sdk 的引用,目标框架是
<TargetFramework>netcoreapp1.1</TargetFramework>
在 csproj 文件中。任何想法这里可能出了什么问题?
对于从命令行进行的 运行 xUnit 测试,您将需要 xunit.runner.console 包。