Comments (5)
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.
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)
- ThreadsafeTypeKeyHashTable.VolatileWrite missing nullable declaration for `value` parameter HOT 2
- MessagePack.Generator - Issues with generic
- Private fields on base class do not get serialized HOT 4
- MessagePack.Generator.2.5.140 - Union metatag causes msc.exe error: Index was outside the bounds of the array
- Add parameter list `ref` usage analyzer for low level reader/writer HOT 1
- Fail in application running on MessagepackCompiler.RunAsync on Windows (works on Linux & macOS) HOT 5
- messagepack is missing NuGet package README file
- MsgPack003 does not generate error in all cases HOT 5
- Update readme file for Analyzer HOT 3
- Add Support for external types via class libraries HOT 1
- Typeless serializer fails to serialize simple type, unless fields are prefixed with "_" HOT 2
- Explicit interface implementation
- Help request - using different (derived-)types for serialize/deserialize (IMessagePackFormatter<Tser, Tdes>)? HOT 2
- Discrepancy in Serialized Size with MessagePack for Complex Object Graphs HOT 1
- Serialize/deserialize of interface types failing with ContractlessStandardResolver HOT 1
- Make System.Runtime.CompilerServices.Unsafe a conditional based on TFM
- Serializing a property without a setter throws "No set accessor" when the class has a constructor HOT 4
- Source generated formatter support of sparse/patch objects via BitArray HOT 5
- A conflict issue using MessagePack.Unityshims HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from messagepack-csharp.