`dotnet test` does not print output for .NET Framework tests for Microsoft.Bcl.Cryptography

Open
#116,604 9 comments 1 reaction 1 assignee View on GitHub

@ViktorHofer is already working on this.

Since Jul 14, 2025.

Assessment

This issue has not been assessed yet.

Description

area-Infrastructure-libraries regression-from-last-release tracking-external-issue

If you run dotnet test against Microsoft.Bcl.Cryptography, the .NET Framework tests will not print any output of the test execution.

Steps to reproduce on Windows:

  1. Check out main
  2. Do a build .\build.cmd -rc Release -s clr+libs
  3. Run .\dotnet.cmd test .\src\libraries\Microsoft.Bcl.Cryptography\tests\

Observe that it does run the .NET 10 tests, and the output for the building the tests for .NET Framework, but does not actually print the output for the test execution itself

Results File: E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography.Tests\Debug\net10.0\TestResults\vcsjones_KEVINJONES078C_2025-06-12_16_32_26.trx
Html test results file : E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography.Tests\Debug\net10.0\TestResults\TestResult_vcsjones_KEVINJONES078C_20250612_163227.html

Failed:     0, Passed:  1484, Skipped:    12, Total:  1496, Duration: 1 s - Microsoft.Bcl.Cryptography.Tests.dll (net10.0)
  Microsoft.Interop.SourceGeneration -> E:\code\runtime\artifacts\bin\Microsoft.Interop.SourceGeneration\Debug\netstandard2.0\Microsoft.Interop.SourceGeneration.dll
  DownlevelLibraryImportGenerator -> E:\code\runtime\artifacts\bin\DownlevelLibraryImportGenerator\Debug\netstandard2.0\Microsoft.Interop.LibraryImportGenerator.Downlevel.dll
  TestUtilities -> E:\code\runtime\artifacts\bin\TestUtilities\Debug\net481\TestUtilities.dll
  System.Formats.Asn1 -> E:\code\runtime\artifacts\bin\System.Formats.Asn1\ref\Debug\net462\System.Formats.Asn1.dll
  System.Formats.Asn1 -> E:\code\runtime\artifacts\bin\System.Formats.Asn1\Debug\net462\System.Formats.Asn1.dll
  Microsoft.Bcl.Cryptography -> E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography\Debug\net462\Microsoft.Bcl.Cryptography.dll
  System.Security.Cryptography.Pkcs -> E:\code\runtime\artifacts\bin\System.Security.Cryptography.Pkcs\ref\Debug\net462\System.Security.Cryptography.Pkcs.dll
  System.Security.Cryptography.Pkcs -> E:\code\runtime\artifacts\bin\System.Security.Cryptography.Pkcs\Debug\net462\System.Security.Cryptography.Pkcs.dll
  Microsoft.Bcl.Cryptography.Tests -> E:\code\runtime\artifacts\bin\Microsoft.Bcl.Cryptography.Tests\Debug\net481\Microsoft.Bcl.Cryptography.Tests.dll

Where is the text execution?

PS E:\code\runtime> 

It will print the output if you explicitly pass the framework like .\dotnet.cmd test .\src\libraries\Microsoft.Bcl.Cryptography\tests\ -f net481

Dominant language
C#
Stars
18.3k
Forks
5.6k
Avg merge
2d 19h
Merged PRs (30d)
589

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.