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

Build Error in the script MemoryPackSerializerOptions.cs in MemoryPack.Core #248

Closed
fenryo237 opened this issue Mar 14, 2024 · 2 comments
Closed

Comments

@fenryo237
Copy link

fenryo237 commented Mar 14, 2024

Hello I am a newbie in MemoryPack and I try to integrate it in ur gaming project to clone object faster than NewtonSoft and for a NativeAOT environment.

I just downloaded the latest release and when I build MemoryPack.Core I have this error message

image

Error CS1513 } expected \MemoryPack.Core\MemoryPackSerializerOptions.cs 4
Error CS1022 Type or namespace definition, or end-of-file expected \MemoryPack.Core\MemoryPackSerializerOptions.cs 21

I really don't see what's missing here.
is there a fix?

EDIT: The installation by Nuggets works fine, but if I want to add the source code to a Nativeaot project it's not building

@hadashiA
Copy link
Contributor

The file you have shown ( \MemoryPack.Core\MemoryPackSerializerOptions.cs ) does not seem to have any compilation errors.

NOTE:

  • MemoryPack.Core also contains C# 12 code.
  • I don't know much about your environment, but at least I think it is available from nuget if your goal is .NET Native AOT compilation.

In any case, since 1.20.0 the distribution of packages has been consolidated to nuget, I don't think they will officially support source code distribution.

@fenryo237
Copy link
Author

Thanks @hadashiA

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