I am trying to get a configuration file up and running with Unity. My non-generic types work fine but when I try and add my generic (both open and closed) I get the following error: The given assembly name or codebase was invalid.
Ordinarily I would check Fusion for the problem, but the thing is my non-generic types that are in the same assemblies work fine, and wiring up the configuration via code also works fine. I have quadruple checked my assemblies and namespaces in the
configuration file. The only difference between what I am doing, and what samples I have seen in the help file online is that my generic types have a 'where TEntity : Entity' clause around them.
Here is a sanitized version:
The first register works fine, the second register throws the exception. I have a similar problem when I try and register a closed generic type.
I have tried versions using the square brackets, with, and instead of the '1(2, 3, etc..) notation but I get the same issue. I have tried using my types as aliases but it doesn't seem to do anything. Anyone got any pointers?
I apologize for nothing giving a more complete codebase, but it's not mine to give out.