Skip to content

Target netstandard2.0#1

Open
scharnyw wants to merge 1 commit into
oskar11120:masterfrom
scharnyw:master
Open

Target netstandard2.0#1
scharnyw wants to merge 1 commit into
oskar11120:masterfrom
scharnyw:master

Conversation

@scharnyw

@scharnyw scharnyw commented May 7, 2026

Copy link
Copy Markdown

Target .NET Standard 2.0 instead of .NET 8 to support a broader range of runtimes.

@oskar11120

Copy link
Copy Markdown
Owner

Hi. The pr doesn't compile on my machine, failing with this error:
image

It seems dotnet standard 2 projects by default use C# version not supporting nullable annotations. I never had a need to target dotnet standard so I am not sure, but looking at other repos targeting dotnet standard there seems to be a way to use a newer language version.
https://github.com/MessagePack-CSharp/MessagePack-CSharp/blob/master/Directory.Build.targets

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.

2 participants