Skip to content

Wrong compilation with nullability support #597

@trejjam

Description

@trejjam

Hi, I have noticed that the target framework changed with the new version. That breaks the nullability annotations.

Image

The issue is that the used preprocessor directive is NET8_0. To prevent similar issues in the future, it should be at least NET8_0_OR_GREATER.

And since nullable annotations have been available since c# 8, which came with Net Core 3 it might be a good idea to use NET5_0_OR_GREATER. In case someone will lower the target framework again. https://learn.microsoft.com/en-us/dotnet/standard/frameworks#preprocessor-symbols

I can make the PR that will fix the issue, if you like.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions