I have layers of interface, application, domain and infrastructure.
At my infrastructure level, take a link to the Domain and Application Layer to register the service interfaces as using Ninject.
But I need the infrastructure level service in my application level, then I need to refer to the infrastructure level in my application level.
The problem is that the infrastructure level refers to the application level, and when I refer to the infrastructure level at the application level, the following error is displayed:
Link to "Infrastructure" cannot be added. Add this project as a reference to cause circular dependency.
How do I solve this? Put the Ninject application level configuration in the application level? I think this is not true because I will have an Infrastructure implementation at my application level.
source share