modesttree / Zenject

Dependency Injection Framework for Unity3D
MIT License
2.47k stars 273 forks source link

Reflection Baking Invalid Path ERROR #202

Open wewrere41 opened 3 years ago

wewrere41 commented 3 years ago

Describe the bug Reflection Baking not working.

To Reproduce

Create a new project Add zenject Create ZenjectReflectionBakingSettings Take android build Expected behavior NO ERROR

Screenshots PangoBright_yMrAyHa0R3

EDITOR Create a new project Add zenject Create ZenjectReflectionBakingSettings Tick In Enabled In Editor PangoBright_rbCR9NDDHv

Screenshots PangoBright_X2tmmVEHaR

Extenject and Unity info (please complete the following information):

Additional context Add any other context about the problem here.

RichardWepner commented 3 years ago

Hello there,

first of all, I'm not an Extenject developer, but just another user myself.

Looking at the code, it looks like this exception occurs if there's an assembly that currently doesn't exist in the file system, or that for another reason points to an invalid location (e. g. Unity constructing special paths for in-memory files).

In my simple test (deviates slightly from your reproduction steps), I wasn't able to observe this issue. In order to eliminate differences based on the local environment, could you please provide the following information:

Background for these questions: it's possible that you're observing these issues since your project or a temporary folder used by Unity uses a path that the .Net libraries interpret as invalid. This can particularly be the case if it's an issue related to the operating system and differences in its path handling.

I'll probably try to reproduce this issue later using IL2CPP myself (I don't have the right setup to do so just yet). In case I'm not able to reproduce this issue: could you please do the following steps and post your results here?

wewrere41 commented 3 years ago

Windows10 19042.630 Path: C:\Kodlama\UnityProjects\TestTemplate\Assets\3rd Party\Plugins\Zenject No Same error again

Unity_DbZwT8GZXX

revolt3r commented 2 years ago

Seems like it's caused by the Rider Unity Package