BenchmarkDotNet icon indicating copy to clipboard operation
BenchmarkDotNet copied to clipboard

chore: Enable assembly signing for debug build

Open filzrev opened this issue 6 months ago • 0 comments

This PR enable assembly signing for Debug build also.

Background When using BenchmarkDotNet.TestAdapter and project contains net462 target. net462 benchmarks are not shown on TestExplorer with Debug configuration. And following error log is recorded on VS output window's Tests pane.

System.IO.FileLoadException: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)'

Currently BenchmarkDotNet sign assembly on Release build only. This PR change this behavior to sign Debug build assembly also.

What's Tested

  • BenchmarkDotNet.Samples (net462) benchmarks are shown on TestExplorer
  • It can display benchmarks on TestExplorer when benchmark project don't use assembly-signing.

filzrev avatar Jun 13 '25 06:06 filzrev