解决C#中的资源依赖关系 [英] Resolving Resources dependency in c#

查看:193
本文介绍了解决C#中的资源依赖关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生您好,
我对代码项目感到非常满意,因为它是一个平台,我们可以在其中找到几乎所有问题的解决方案.
有时我问问题,但是在得到答案后,我觉得这是一个非常愚蠢的问题,我们不应该问.所以我非常乐意代码项目团队忽略我的愚蠢.

我的疑问是
我正在c#中创建一个类库项目,说(Custom_Server),需要引用Utility dll.
因此在部署时需要使用实用程序dll或Custm_Server dll
足够了,因为它已经具有实用程序dll的引用.

Hello sir,
I am very happy with code project because it a platform where we get solution of almost all question whether good or bad.
sometimes i ask question but after getting answer i felt it was very stupid question we should not ask .so i am very great full towards code project team to ignore my stupidity.

Here my doubt is
I am creating a class library project say (Custom_Server) in c# that needs reference of Utility dll.
so at the time of deployment presence of utility dll is needed or Custm_Server dll
is sufficient because it already has reference of Utility dll.

推荐答案

否,您既需要实用程序dll也需要自定义服务器dll.
您在Visual Studio中添加的引用只是为了向Visual Studio清楚您将使用该dll,它改进了智能感知,使您能够输入类型,然后让Visual Studio知道要在哪个命名空间中添加. using子句.没有参考,VS只是不知道所有这些,并且项目甚至都不会编译,因为VS会看到很多未知类型.
在运行时,引用仍然存在,并且非常需要dll的存在.
不要将.NET dll与c或c ++中的lib混淆,它们不会链接到一个程序集,在其中可以解决所有问题,它们是真正的dll,即动态链接.
No you need both the utility dll and the custom server dll.
The references you add in visual studio is just to make clear to visual studio that you will be using that dll, it improves the intellisense, enables you to put in a type and then to let visual studio find out in which namespace it is to add the using clause. Without the reference, VS just does not know all this and the project would not even compile, because then VS would see a lot of unknown types.
At runtime, the reference is still there and the presence of the dll is very much needed.
Don''t confuse the .NET dll''s with lib''s like in c or c++, they are not linked together into one assembly wherein everything is resolved, they are genuine dll''s, ie dynamically linked.


这篇关于解决C#中的资源依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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