After upgrading to Unity 2019.2 there is a built-in package for the Jetbrains Rider IDE. This package produces an error in the reflection baking while building:
The problem is that assemblies[i].Location returns an empty string.
I am not sure if this is a problem with the package or with Zenject. But the Rider package is editor only so it should probably not be included in the reflection baking process.
Unity: 2019.2.5f
Extenject/Zenject: 9.0.0
Workaround: In UnityAssemblyResolver.cs add a Try-Catch around AddSearchDirectory(Path.GetDirectoryName(assemblies[i].Location));
After upgrading to Unity 2019.2 there is a built-in package for the Jetbrains Rider IDE. This package produces an error in the reflection baking while building:
The problem is that assemblies[i].Location returns an empty string. I am not sure if this is a problem with the package or with Zenject. But the Rider package is editor only so it should probably not be included in the reflection baking process.
Unity: 2019.2.5f Extenject/Zenject: 9.0.0 Workaround: In
UnityAssemblyResolver.cs
add a Try-Catch aroundAddSearchDirectory(Path.GetDirectoryName(assemblies[i].Location));