Describe the bug
I encountered a conflict when using ZLogger and MemoryPack source generators together in a Unity project. Both libraries rely on C# source generation but require different language versions, causing compilation errors.
(ZLogger does not use source generation and can work with MemoryPack at the same time.)
Expected behavior
Both ZLogger and MemoryPack source generators work without compilation errors.
Actual behavior
With -langversion:latest:
MemoryPack works correctly.
ZLogger fails with:
error CS8652: The feature 'UTF-8 string literals' is currently in Preview and unsupported.
To use Preview features, use the 'preview' language version.
With -langversion:preview:
ZLogger works correctly.
MemoryPack fails with:
error CS8987: The 'scoped' modifier of parameter 'value' doesn't match overridden or implemented member.
Environment
Unity version: 6000.2.7f2
ZLogger version: 2.5.10
MemoryPack version: 1.21.4