petabridge / NBench

Performance benchmarking and testing framework for .NET applications :chart_with_upwards_trend:
https://nbench.io/
Apache License 2.0
532 stars 46 forks source link

There was a mismatch between the processor architecture of the project being built #221

Closed williammoore0 closed 4 years ago

williammoore0 commented 6 years ago

When building project in Visual Studio using build for Any CPU, and referencing NBench, recieve the following error:

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "NBench.Runner, Version=1.0.4.0, Culture=neutral, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

Aaronontheweb commented 6 years ago

Ah, fun stuff - AMD64 appears to be a new architecture; never seen that before. Might be something that's been added post-meltdown patch. I use a brand new Ryzen on my development machine. Let me shake some trees loose and see what shows up there.

Aaronontheweb commented 4 years ago

Resolved in 2.0 - NBench no longer contains an external runner. It gets built inside your own Program.cs and runs as a DLL. Will update the documentation accordingly once it ships in the next couple of days.