Skip to content

Disable compiler warnings for non-nullable strings#228

Open
Mbucari wants to merge 1 commit intogisinternals:mainfrom
Mbucari:patch-1
Open

Disable compiler warnings for non-nullable strings#228
Mbucari wants to merge 1 commit intogisinternals:mainfrom
Mbucari:patch-1

Conversation

@Mbucari
Copy link
Copy Markdown

@Mbucari Mbucari commented Feb 26, 2025

When adding the nuget package to a project with nullable reference types enabled, the three null string assignments cause analyzer warnings. Since you're targeting netstandard2.0 which only supports C# 7.3, you can't add a #nullable disable statement to GdalConfiguration.cs. So the only option remaining is to just disable that waning in the source file.

Nullable reference types is only available in C#, not VB.NET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant