Skip to content

Unity 2023.2.10f1 gives error in Generator #275

Description

@chmodseven

Hi, I'm not sure if I'm being a donkey here and not installing it properly, but I have attempted to import the latest MemoryPack into a Unity 2023.2.10f1 project, to replace a previous version that came in a unitypackage with the current 1.21.0 via Nuget For Unity.

I get the following:
Assembly 'Assets/Packages/MemoryPack.Generator.1.21.0/analyzers/dotnet/cs/MemoryPack.Generator.dll' will not be loaded due to errors:
Unable to resolve reference 'Microsoft.CodeAnalysis'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'Microsoft.CodeAnalysis.CSharp'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

I attempted to also nuget in that reference and it led to a whole rabbit warren of other errors. So I created a temp project back on an older Unity 2022.3.20f1 install, and the latest MemoryPack installed just fine there over nuget, with no analyzer issues.

Is there some extra step I'm missing for Unity 2023+ or is it just not compatible there yet? I can't fathom why 2022 would not get stuck in the CodeAnalysis dependency weeds while the other one fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions