MagicOnion icon indicating copy to clipboard operation
MagicOnion copied to clipboard

Error CS0234 The type or namespace name 'MagicOnion' does not exist in the namespace 'MessagePack.Formatters' (are you missing an assembly reference?)

Open aleh4d opened this issue 1 year ago • 4 comments

I got the following error when compiling client-side of StreamingHubClient sample (.net 8.0) Error CS0234 The type or namespace name 'MagicOnion' does not exist in the namespace 'MessagePack.Formatters' (are you missing an assembly reference?)

  • I checked all packages in project, what is missing?

    PackageReference Include="MagicOnion.Abstractions" Version="6.1.3" PackageReference Include="MagicOnion.Client" Version="6.1.3" PackageReference Include="MagicOnion.Serialization.MessagePack" Version="6.1.3" PackageReference Include="MagicOnion.Shared" Version="6.1.3"

aleh4d avatar Jun 18 '24 16:06 aleh4d

What source code does the error occur in? In the code you wrote or in the code generated by the Source Generator?

mayuki avatar Jun 19 '24 03:06 mayuki

looks like it is in code generated by source generator, the error is in file MOClient_MagicOnionGeneratedClientInitializer_MessagePack.g.cs

aleh4d avatar Jun 19 '24 19:06 aleh4d

The source generator is intended to be used in combination with MessagePack's mpc (code generator). Are you using mpc in your project?

mayuki avatar Jun 20 '24 09:06 mayuki

explicitly not, but I need client part to run on Android (Avalonia), ant that may be strictly Ahead Of Time environment, so Message Pack Compiler may kick in?

Message Pack packages that I have installed: image

aleh4d avatar Jun 20 '24 21:06 aleh4d

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.

github-actions[bot] avatar Dec 18 '24 00:12 github-actions[bot]