Open flobernd opened 1 year ago
Hi @flobernd
Please send a PR with the fix, you most likely need to add this setting in the following two places:
@adamsitnik,
Is this still an issue?
Is this still an issue?
Most likely yes as we have not changed anything on our side.
Anything I can do to move this forward?
This might require BenchmarkDotNet to support central package management, as projects won't have versions in package references.
Or is it an issue only for the BenchmarkDotNet project?
Is there a way to get a binlog from the build BenchmarkDotNet is doing?
Anything I can do to move this forward?
You would need to be able to reproduce it by using CPVM and then propose a fix. In theory what I posted here should be enough: https://github.com/dotnet/BenchmarkDotNet/issues/2213#issuecomment-1335032942, but we need to test it.
Is there a way to get a binlog from the build BenchmarkDotNet is doing?
If you pass --generateBinLog
BDN should generate the bin log.
Anything I can do to move this forward?
You would need to be able to reproduce it by using CPVM and then propose a fix. In theory what I posted here should be enough: #2213 (comment), but we need to test it.
Is there a way to get a binlog from the build BenchmarkDotNet is doing?
If you pass
--generateBinLog
BDN should generate the bin log.
@adamsitnik, so far, 0.14.0 works fine with artifacts output and central package management.
My project is using the new central package version management feature (
Directory.Packages.props
in the root directory). If this feature is enabled, it's not allowed to specify a package version in a<PackageReference>
tag.BenchmarkDotNet build fails, because of this:
It can be fixed on your side by auto-generating a
Directory.Packages.props
in the output directory (e.g.\bin\Release\net7\a26f5fd8-3b2f-4716-a61f-af4e51ccb248
in this example) with the following content:This will disable the CPVM feature for all projects inside the output directory (recursively).