-
Notifications
You must be signed in to change notification settings - Fork 15
Enable .NET 5 SDK #7
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
Conversation
Investigating failures |
6a66457
to
7721ae8
Compare
NOTE: Required update to 0.12.1 of BenchmarkDotNet to support the shortened TFM. However, this requires explicit LangVersion since latest is not current supported.
4d60351
to
3737b94
Compare
@@ -3,11 +3,12 @@ | |||
<PropertyGroup> | |||
<OutputType>Exe</OutputType> | |||
<IsPackable>false</IsPackable> | |||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||
<TargetFramework>net5.0</TargetFramework> | |||
<LangVersion>9.0</LangVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a bug in 0.12.1 which means that we cannot use latest here from Directory.Build.props
so temporarily fixing this to 9.0.
Once Benchmark.NET includes a fix, we can remove this after updating to that version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there already an open a ticket for this on Benchmark.NET ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it's fixed and will be in 0.12.2 - dotnet/BenchmarkDotNet#1420
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> | ||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required for net5.0 TFM support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Support using newer compiler features such as Source Generators.