My Unity project references a dll “X” that has a reference to the assembly “Y”.
Since I developed X, I know what Y is used for, and I don’t need it for my Unity project. Therefore I don’t want to include “Y” in my Unity project.
Instead of making a second version of “X” that doesn’t use “Y”, I would like Unity to ignore the following error…
ArgumentException: The Assembly Y is referenced by X. But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary
2[TKey,TValue] cache, UnityEditor.BuildTarget target)
(…)
…and, of course, fail in runtime if Y is actually used.
Is that possible?
Thank you.