Does Unity have tracking?

I have a very large dependency tree, and Unity is not trying to solve the dependency somewhere in this huge dependency chain. I need to manually look through all the dependencies to find out what is missing, which is a huge task.

Unfortunately, unity only reports the object that he is trying to build, in the exception that he throws, and does not provide information about the route that he made to get to this point.

Does Unity provide tracing / logging information that can help me determine which dependencies I have?

+8
c # unity-container
source share
1 answer

There is no trace in Unity.

ResolutionFailedException that Unity throws when the attempt to resolve the dependency fails contains all the relevant information, whether in the Title , StackTrace or InnerException .

Typically, most InnerException contain the root cause of a ResolutionFailedException .

+1
source share

All Articles