Search code examples
c#dependencieslog4netstructuremap

C# and references in one Solution for all projects


I use for example log4net and StructureMap dependencies in my project, now I want to split my project to more smaller projects in one VS solution, is it possible to use only one configuration for log4net and StructureMap configuration? Or must I add dependency to each project and set config files again for these plugins?

Each of these projects uses log4net and structure map, but the main project is a web app which calls other projects which is a C# library like:

Solution    
   - WebApp (ASP.NET MVC) project
        -- C# (Library) project
        -- C# (Library) project

I need log info to same file.


Solution

  • Yes, the application will take the WebApp web.config configuration.