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
Benchmarks referencing TestAdapter fail to build with OS-specific TFMs #2501
Comments
I tried to add a custom entry point and config to specify the TFM explicitly, but got the same error:
|
You can use a |
@timcassell Ah, yup, the Config attribute does work, but I was trying to do it just via a custom entry point to avoid hitting problems from #2500. If I do both the Config attribute and |
Attempting to use the TestAdapter with a project using an OS-specific TFM such as
<TargetFramework>net8.0-windows</TargetFramework>
gives an error when trying to run the benchmark through the test explorer:
D:\BenchmarkTest\bin\x64\Release\2cab09cb-454b-49b3-b8fb-d898d2a7f2df\BenchmarkDotNet.Autogenerated.csproj : error NU1201: Project BenchmarkTest is not compatible with net8.0 (.NETCoreApp,Version=v8.0). Project BenchmarkTest supports: net8.0-windows7.0 (.NETCoreApp,Version=v8.0)
The text was updated successfully, but these errors were encountered: