Open wewrere41 opened 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:
\
on Windows, /
on others)?Api Compatibility Level
to .NET 4.x
(Project Settings -> Other Settings -> Configuration)?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?
Plugins/OptionalExtras/ReflectionBaking/Unity/UnityAssemblyResolver.cs
UnityEngine.Debug.LogFormat("assembly at index {0}: {1} (location: {2}, null? {3})", i, assemblies[i], assemblies[i].Location, assemblies[i].Location != null);
in the constructor right above AddSearchDirectory(Path.GetDirectoryName(assemblies[i].Location));
Windows10 19042.630 Path: C:\Kodlama\UnityProjects\TestTemplate\Assets\3rd Party\Plugins\Zenject No Same error again
Seems like it's caused by the Rider Unity Package
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](https://user-images.githubusercontent.com/45511976/100126363-e957a100-2e8e-11eb-8828-bd44d93ab161.jpg)
EDITOR Create a new project Add zenject Create ZenjectReflectionBakingSettings Tick In Enabled In Editor![PangoBright_rbCR9NDDHv](https://user-images.githubusercontent.com/45511976/100126753-697e0680-2e8f-11eb-9f3d-0210feb658b8.jpg)
Screenshots![PangoBright_X2tmmVEHaR](https://user-images.githubusercontent.com/45511976/100126961-a9dd8480-2e8f-11eb-9db5-203e1e1d966d.jpg)
Extenject and Unity info (please complete the following information):
Additional context Add any other context about the problem here.