Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet-moc cannot generate the Nested Classes correctlly. #643

Closed
sableangle opened this issue May 11, 2023 · 0 comments
Closed

dotnet-moc cannot generate the Nested Classes correctlly. #643

sableangle opened this issue May 11, 2023 · 0 comments
Labels

Comments

@sableangle
Copy link
Contributor

sableangle commented May 11, 2023

For example, the classes is define like this:

namespace MyNameSpace{
[MessagePack.MessagePackObject(keyAsPropertyName: true)]
  public class Currency
  {
          [MessagePack.MessagePackObject(keyAsPropertyName: true)]
          public class UsageData
          {
          }
  } 
 }

Expect result:

MagicOnionResolver.Instance.GetFormatter<global::MyNameSpace.Model.Currency.UsageData>();

Actual result:

MagicOnionResolver.Instance.GetFormatter<global::MyNameSpace.Model.UsageData>();

Which causes compile on Unity.

By the way, get correct result on mpc (MessagePack Code Generator)

sableangle added a commit to sableangle/MagicOnion that referenced this issue May 11, 2023
@mayuki mayuki added the bug label May 19, 2023
mayuki added a commit that referenced this issue May 19, 2023
fix DeclaringType code generate issue #643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants