dotnet / dotnet/BenchmarkDotNet

App only runs inprocess on dev machine

Open
#2,452 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
6d 11h
Merged PRs (30d)
12

Description

Dev machine is on Windows 10 with net8.0 sdk installed.
Alternate machine is on Windows 11 with net8.0 sdk installed.
Set up project exactly as outlined in getting started.

On the dev machine, using
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, new DebugInProcessConfig());
works. The only thing missing is that no result artifacts are produced.

On the dev machine, when using
var summary = BenchmarkRunner.Run(config, args);
OR
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
then the program show //Validating benchmarks and then exits.
No exception is thrown.
It never progresses to the next line so nothing can be extracted from the summary.
There is nothing logged in the Event Viewer.

![image](https://github.com/dotnet/BenchmarkDotNet/assets/35544902/08d515e5-d8ed-4cda-8f1a-bde9ec89ef0e)

It's exiting somewhere here, but I haven't been able to deconstruct it enough to glean why it would work in one environment and not another.

![image](https://github.com/dotnet/BenchmarkDotNet/assets/35544902/c6e92d23-6bbd-4a5f-9aeb-1388fa452db5)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.