Closed dorny closed 1 year ago
Thanks for the kind words! They are appreciated.
Can you make sure your <LangVersion>
is set to at least 8.0 in the .csproj? 8.0 is the minimum that FlatSharp tests and officially supports at this point. The official docs say that if unspecified, netstandard2.0
will default to version 7.3.
Yeah, seems this what the thing I was missing. I was under impression the C# 8 is not supported when targeting netstandard2.0
.
Oh man, you probably just saved my some hours of work of backporting bunch of code to C# 7.3. I'm going to try it now and if all works out I will close the issue. Thanks.
I'm trying to use FlatSharp with
netstandard2.0
which don't support nullable annotations. I've tried to disable them: https://github.com/jamescourtney/FlatSharp/wiki/Compiler#nullable-annotations but seems theFlatSharpNullable
property has no effect.Example
csproj:
Model:
MSBuild output:
Generated code:
Am I missing something or it's a bug?
PS: I've previously used your library on a different project and worked flawlessly. Thanks for your work on this 👍