Skip to content

MSBuild parameters are not passed to generated benchmark project #466

@xplicit

Description

@xplicit

I run the following command to build and run benchmarks:

dotnet restore /p:BASELINE=1
dotnet build /p:BASELINE=1 -c Release
dotnet exec -c Release -f netcoreapp1.1 bin/Release/netcoreapp1.1/benchmarks.dll

But BenchmarkDotNet creates its own wrapping project and does not pass /p:BASELINE=1 to msbuild. Here is content of BDN.Generated.sh

call dotnet restore --no-dependencies
call dotnet build --framework netcoreapp1.1 --configuration Release

while it should be

call dotnet restore /p:BASELINE=1 --no-dependencies
call dotnet build /p:BASELINE=1 --framework netcoreapp1.1 --configuration Release

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions