Skip to content

Benchmark failed to build when specifying JobId to Default #2723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
filzrev opened this issue Apr 26, 2025 · 0 comments
Open

Benchmark failed to build when specifying JobId to Default #2723

filzrev opened this issue Apr 26, 2025 · 0 comments

Comments

@filzrev
Copy link
Contributor

filzrev commented Apr 26, 2025

Benchmark failed to build when explicitly JobId as Default with .WithId("Default").
It seems to be reserved by BenchmarkDotNet internally.

Error Logs

// Build Error: Standard output:

 Standard error:
 MSBUILD : error MSB4177: Invalid property. The name " LaunchCount" contains an invalid character " ".

// BenchmarkDotNet has failed to build the auto-generated boilerplate code.
// It can be found in C:\Temp\BenchmarkProj\bin\Release\net8.0\IterationCount=3, LaunchCount=1, RunStrategy=Monitoring, WarmupCount=3

It might be better to throw exception if reserved id is specified by WithId.
or separate JobId/JobDisplayName (It's proposed at #2411)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant