C# 如何抑制烦人的情绪;正在跳过项目的运行测试…”;运行dotnet测试时的消息?

C# 如何抑制烦人的情绪;正在跳过项目的运行测试…”;运行dotnet测试时的消息?,c#,unit-testing,.net-core,C#,Unit Testing,.net Core,请注意: C:\xyz\code [master ≡]> dotnet test --no-build -c Release -v:q Platform.sln Skipping running test for project C:\xyz\code\src\Platform\Security\Security.csproj. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>

请注意:

C:\xyz\code [master ≡]> dotnet test --no-build -c Release -v:q Platform.sln
Skipping running test for project C:\xyz\code\src\Platform\Security\Security.csproj. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
Skipping running test for project C:\xyz\code\src\Platform\KeyGeneration\KeyGeneration.csproj. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
Skipping running test for project C:\xyz\code\src\Platform\Contracts\PlatformContracts.csproj. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
Test run for C:\xyz\code\UnitTests\Platform.UnitTests\bin\Release\netcoreapp2.2\Platform.UnitTests.dll(.NETCoreApp,Version=v2.2)
Skipping running test for project C:\xyz\code\src\Platform\DataManagement\DataManagement.csproj. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
Microsoft (R) Test Execution Command Line Tool Version 15.9.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

Total tests: 4. Passed: 4. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 1.4168 Seconds
C:\xyz\code [master ≡]>
C:\xyz\code[master≡]> dotnet测试--无构建-c版本-v:q Platform.sln
正在跳过项目C:\xyz\code\src\Platform\Security\Security.csproj的运行测试。若要使用dotnet测试运行测试,请将“true”属性添加到项目文件中。
正在跳过项目C:\xyz\code\src\Platform\KeyGeneration\KeyGeneration.csproj的运行测试。若要使用dotnet测试运行测试,请将“true”属性添加到项目文件中。
正在跳过项目C:\xyz\code\src\Platform\Contracts\PlatformContracts.csproj的运行测试。若要使用dotnet测试运行测试,请将“true”属性添加到项目文件中。
C:\xyz\code\UnitTests\Platform.UnitTests\bin\Release\netcoreapp2.2\Platform.UnitTests.dll(.NETCoreApp,版本=v2.2)的测试运行
正在跳过项目C:\xyz\code\src\Platform\DataManagement\DataManagement.csproj的运行测试。若要使用dotnet测试运行测试,请将“true”属性添加到项目文件中。
Microsoft(R)测试执行命令行工具版本15.9.0
版权所有(c)微软公司。保留所有权利。
正在启动测试执行,请稍候。。。
测试总数:4。通过:4。失败:0。跳过:0。
测试运行成功。
测试执行时间:1.4168秒
C:\xyz\code[主≡]>

Platform.sln
解决方案列出了几个项目,其中一些是单元测试项目,但不是全部。运行
dotnet test
会输出关于跳过不包含任何测试的项目的运行测试的恼人消息。如何抑制这些消息?

您不是唯一对此感兴趣的人。但是ere似乎不是一个通用的解决方案,尽管您可能会发现这很有帮助(或者没有):我已经通读了线程,但它没有显示如何抑制消息。他们的问题是,
dotnet test
返回了非退出代码。现在它返回了一个正确的退出代码,但我希望避免垃圾消息。