C#库和项目 [英] C# Libraries and Projects

查看:99
本文介绍了C#库和项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个解决方案,其中有4个项目是其中的2个:基础架构和演示文稿.

演示文稿引用了基础架构,基础架构引用了一个很少的.dll程序集.

那些程序集也不应在Presentation中使用,因为它引用了基础结构吗?

没有必要添加所有程序集也要演示...

也许我做错了什么?

谢谢,
Miguel

Hello,

I have a solution with 4 projects being 2 of them: Infrastructure and Presentation.

Presentation has a reference to Infrastructure and Infrastructure has a reference to a few .dll assemblies.

Shouldn't those assemblies being also available in Presentation since this has a reference to Infrastructure?

It makes no sense to need to add all the assemblies also to Presentation ...

Maybe I am doing something wrong?

Thanks,
Miguel

推荐答案

Nop,

只需添加对基础结构的引用.

但是请注意,如果基础结构具有一个公共方法,该方法返回在引用的dll中声明的类型.然后在演示文稿中使用该方法,那么您将需要引用
Nop,

Just add the reference to Infrastructure.

Note however that if Infrastructure has a public method that returns a type declared in the referenced dlls and you use that method in presentation then you will need the reference


这篇关于C#库和项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆