GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Is MESSAGEPACK_FORCE_AOT necessary? · Issue #1886 · MessagePack-CSharp/MessagePack-CSharp

Is MESSAGEPACK_FORCE_AOT necessary? #1886

New issue
Copy link
New issue
Copy link
Closed
Closed
Is MESSAGEPACK_FORCE_AOT necessary?#1886
Copy link
Assignees
pCYSl5EDgo
Labels
unity
Milestone
v3.0

Description

@pCYSl5EDgo
pCYSl5EDgo
opened on Jul 18, 2024
Issue body actions

#1701 introduced the MESSAGEPACK_FORCE_AOT define symbol for the sake of Unity editor with IL2CPP project.
Unity users define MESSAGEPACK_FORCE_AOT in their Unity editor.

MessagePack-CSharp v3 moves the codes to Nuget repository and the above usage has become meaningless.
MESSAGEPACK_FORCE_AOT seems to be substitutable by MessagePackSerializer.AvoidDynamicCode.

Is MESSAGEPACK_FORCE_AOT define symbol still necessary?
If not, I'll write a PR to replace it with MessagePackSerializer.AvoidDynamicCode.

Activity

  1. AArnott
    added
    unity
    on Jul 18, 2024
  2. AArnott
    added this to the v3.0 milestone on Jul 18, 2024
  3. AArnott commented on Jul 18, 2024

    @AArnott
    AArnott
    on Jul 18, 2024
    Collaborator
    More actions

    I don't know. @neuecc ?

  4. neuecc commented on Jul 18, 2024

    @neuecc
    neuecc
    on Jul 18, 2024
    Member
    More actions

    I think this feature should not be supported, as the scope is also ambiguous (preventing ILEmit and preventing MakeGenericType are separate issues).
    If someone really wants to prevent it, they can set up their own customized Resolver.

  5. AArnott
    assigned
    pCYSl5EDgo
    on Jul 18, 2024
  6. AArnott commented on Jul 18, 2024

    @AArnott
    AArnott
    on Jul 18, 2024
    Collaborator
    More actions

    Thanks for offering to fix this, @pCYSl5EDgo. Can you also get rid of ENABLE_IL2CPP and any other unity-specific preprocessor symbol you come across that isn't under the UnityClient folder any more?

  7. pCYSl5EDgo commented on Jul 18, 2024

    @pCYSl5EDgo
    pCYSl5EDgo
    on Jul 18, 2024
    ContributorAuthor
    More actions

    Ok. I will make a PR.

  8. AArnott
    closed this as completedon Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pCYSl5EDgo
    pCYSl5EDgo

Labels

unity

Type

No type

Projects

No projects

    Milestone

    • v3.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.