dotnet / dotnet/BenchmarkDotNet

Results are not saved to file when running via command line

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

Description

Running the project from Visual Studio creates the `results` folder in the parent directory just fine. However, running the program from the command line does not produce any output files for some reason.

My `Program.cs` contains this: `BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);`, and I run the benchmark via the command line like this: `dotnet run -c Release --framework net7.0`, from the project directory.

What is the difference between running it from VS and the command line, and why does the latter not produce the results files?

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.