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

MemoryPack 目前版本到了1.21.1,和代码生成模版有些不匹配了,导致新 clone 的项目无法启动。 #592

Open
xushi-mike opened this issue Apr 26, 2024 · 1 comment

Comments

@xushi-mike
Copy link

经过测试,将 \Share\Share.SourceGenerator\Generator\ETEntitySerializeFormatterGenerator.cs 文件的 70 行替换成以下内容:

public override void Serialize<TBufferWriter>{{genericTypeParam}}(ref MemoryPackWriter<TBufferWriter>{{genericTypeParam}} writer,{{scopedCode}} ref global::{{Definition.EntityType}}? value)

再生成新的 Share.SourceGenerator.dll 替换掉 Unity 的 Plugins 目录下的旧文件就能让编译通过。

@egametang
Copy link
Owner

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants