GithubHelp home page GithubHelp logo

Comments (5)

tylorr avatar tylorr commented on May 26, 2024

It appears that I need to specify Unity.Entities.Hash128 within a MessagePackAnalyzer.json and pass that to the analyzer via a AdditionalFiles property. But I can't find a way to do that in Unity where both unity and the editor can see it. I've only been able to get the IDE to see it but there are times (though curiously not all the time) where Unity will complain with the same error and I have not found a way to provide Unity with the right AdditionalFiles setting.

I currently don't care to have the analyzers as long as I could use the source generator with accurate error logging. I've tried removing the analyzers but then Unity complains that MessagePack.GeneratedMessagePackResolver is internal and can't access it which makes sense. But I can't figure out how to pass any of the customizations to the generator via Unity such as MessagePackGeneratedResolverNamespace or PublicMessagePackGeneratedResolver.

I'm working with several in house built unity packages which I would love to use source generators for as well but currently it just doesn't seem possible. I would love another way of configuring the source generation that doesn't involve modifying csproj files because it doesn't work with Unity.

from messagepack-csharp.

AArnott avatar AArnott commented on May 26, 2024

You mention Rider a lot. Does it repro without Rider (e.g. command line, Visual Studio, or the Unity editor)?

from messagepack-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.