GenieClient / Genie4

.NET 6 Update of Genie
GNU General Public License v3.0
20 stars 14 forks source link

VS2022 generates error CS8983 for struct CommandRestrictions due to SDK change #82

Closed vtcifer closed 2 years ago

vtcifer commented 2 years ago

See details:

https://github.com/dotnet/roslyn/pull/58581 https://github.com/dotnet/csharplang/issues/5552

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/parameterless-struct-constructors#definite-assignment https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/struct#parameterless-constructors-and-field-initializers

Simple fix is to define a parameterless constructor for the struct.