Closed gemzone closed 1 month ago
MagicOnion.Client.Unity.unitypackage does not include MagicOnion.Client.SourceGenerator. After copying it into Unity, I'm encountering the following error: "Feature 'file-scoped namespace' is not available in C# 9.0. Please use language version 10.0 or greater."
I'm struggling with a simple syntax error. The issue is related to either missing braces for the namespace or a syntax problem due to the C# version. The namespace might be using file-scoped syntax, which isn't supported in older C# versions.
Could you help me resolve this? Should I modify the namespace declaration, or is there a way to update the C# language version in Unity to support this syntax?
I've lost an entire day. I didn't know there was a MessagePack CodeGen in the Unity menu. This isn't mentioned anywhere in the guides.
Scripts\InitialSettings.cs(14,6): error CS0246: The type or namespace name 'MagicOnionClientGenerationAttribute' could not be found (are you missing a using directive or an assembly reference?) Scripts\InitialSettings.cs(14,6): error CS0246: The type or namespace name 'MagicOnionClientGeneration' could not be found (are you missing a using directive or an assembly reference?)
I've seen example code, but it's using code that isn't referenced anywhere. I would appreciate it if you could provide a detailed guide on what this is related to.