Dependency Injection and project structure for Console applications
问题 I have 4 projects: Core (IServer): System System.Core DependencyResolver: Core StructureMap Infrastructure (Service): Core External dependency Console: Core DependencyResolver Requierements: I am trying to use StructureMap only in the DependencyResolver. Furthermore the Console application should not know anything about Infrastucture. When I do not want to reference StructureMap on my Console Application I have to build a ServiceLocator. In the DependencyResolver I have a Bootstrapper that is