Hi, I have noticed that the target framework changed with the new version. That breaks the nullability annotations.
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.
Hi, I have noticed that the target framework changed with the new version. That breaks the nullability annotations.
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.
html-agility-pack/src/HtmlAgilityPack.Shared/HtmlNode.Xpath.cs
Line 41 in 8490ad1
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.