在发布模式下关闭调试器

Turning off debugger in release mode

我已将构建设置为发布模式。

我 运行 我的 .NET Core 3.1 控制台应用 Benchmark DotNet。但它告诉我,

Summary -> Benchmark was executed with attached debugger

如何在 Release 构建模式下完全关闭调试器?

调试 -> 不调试启动 (Ctrl+F5)

您可以从命令行 运行 它:

dotnet run -c Release