简体   繁体   English

所有项目的C#和一个解决方案中的引用

[英]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? 我在项目中使用log4netstructuremap依赖项,现在我想在一个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.

相关问题 C#在解决方案中的所有项目中递归查找引用 - C# Recursively Find References in All Projects In Solution C#解决方案,除了必须是x86之外,所有项目都可以针对AnyCPU吗? - C# Solution, can all projects target AnyCPU except one which has to be x86? 如何在一个地方为我的解决方案中的所有项目更改 C# 语言版本? - How to change C# Language Version for all of the projects in my solution in one place? C#:自定义颜色类可供解决方案中的所有项目访问 - C#: Custom Colors class accessible to all projects in solution 从一个解决方案C#连续部署多个项目 - Continuous Deployment multiple projects from one solution c# 在一个解决方案 c# 上为多个项目使用 NLog - Using NLog for several projects on one solution c# SVN项目中的C#解决方案 - C# Solution into SVN projects 如何使用Resharper在解决方案中的其他项目中找到C#组装项目参考? - How to find C# Assembly Project References in other Projects within Solution using Resharper? Roslyn 在解决方案的所有项目中查找对方法的所有引用 - Roslyn Find ALL References to a Method in ALL Projects in a Solution 降级解决方案中的所有项目以仅使用net451引用 - Downgrading all projects in solution to only use net451 references
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM