Closed 42Entwickler closed 7 months ago
net 7 and others is different method signature. please see target-framework-dependency section. https://github.com/Cysharp/MemoryPack#target-framework-dependency
Yea I found and tried this already. But targeting both brings me in big troubles (i only need .net7) because I use multiple features not supported when targeting .netStandard (like GC.AllocateUninitializedArray<byte>(SIZE)
) or init
on properties or [SupportedOSPlatform("windows")]
isn't supported... And the given compile errors mentioned above still occurs. (with the new once)
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Since the signature of IMemoryPackFormatter has been changed since 1.10, please change ref
to scopd ref
.
(Note that the Unity package is distributed with C# 9.0 source, so it is still a ref, not a scoped ref.
Having a class Library with MemoryPack 1.9.16. After Upgrade from .net6 to .net7 the custom-formater don't compile anymore:
The Serialize and the Deserialize Method have the compile error CS8987: The 'scoped' modifier of parameter 'value' doesn't match overridden or implemented member.
The TargetFramework is simply .net7.0 with no special configuration. So it's the default language (C# 11)
any help how to fix this?