[英]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? 我在项目中使用log4net和structuremap依赖项,现在我想在一个VS解决方案中将项目拆分为更小的项目,是否可以只使用一个配置来进行log4net和structuremap配置? Or i must to add dependency to each project and set again config files 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 ac# library like: 这些项目中的每一个都使用log4net和结构图,但主要项目是一个web应用程序,它调用其他项目,如ac#library,如:
Solution
- WebApp (ASP.MVC) project
-- C# (Library) project
-- C# (Library) project
I need log info to same file. 我需要日志信息到同一个文件。
是的,应用程序将采用WebApp web.config
配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.