hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.89k stars 165 forks source link

[Unity] Is there a way to check if SourceGenerator is working? #583

Closed lamlnt closed 8 months ago

lamlnt commented 9 months ago

I added the SourceGen dll into the project but I still see ILPostProcessorErrorException and Skip IL waving warnings when building for android. Does this mean SourceGen is incorrectly set up?

hadashiA commented 8 months ago

see ILPostProcessorErrorException and Skip IL waving warnings

I believe this is from the CodeGen feature (using mono-cecil) prior to the introduction of the source generator. In v1.14.0, the old CodeGen was removed. So the warning should no longer appear.

Also, if Souce Generator is running, you can check the generated code from the IDE.