VS .dll参考系统如何用于设计时和运行时组件? [英] How does the VS .dll references system works for design time and run time components ?

查看:60
本文介绍了VS .dll参考系统如何用于设计时和运行时组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用第三方(DevExpress)库而不进行安装(仅使用我项目中的.dll引用)
(背景:我想在不同的项目中使用它们的多个版本,但它们不支持安装)

我可以通过在.csproj中添加对.dll的引用来进行编译.

但是,我在设计时间上遇到了困难..
我设法使设计器正常工作的唯一解决方案是将设计器.dlls路径包括在我的项目->属性->参考路径中


我的问题是-为什么在我的项目引用中仅包含设计器.dll?
设计时间有何不同?
与在参考路径"中包含设计器.dll之间有什么区别? (保存在.user文件中)与.csproj引用吗?

谢谢.

Hi,
I am trying to use a 3rd party (DevExpress) library without installing it (just use .dll references from my projects)
(background: I want to use multiple versions of them in different projects, and they don't support that with installation)

I was able to compile by adding references to the .dlls in my .csproj.

however, I am having difficulties with the design time.. 
the only solution I managed to get the designer working is to include the designer .dlls path in my project->properties->Reference Paths


my question is - Why is it not enough to include the designer .dlls in my project references ?
how is design time different ?
and what is the difference between including the designer .dlls in the "References Paths" (saved in .user file) vs the .csproj references ?

thanks.

推荐答案

阿迪·扎法蒂,

Hi Adi Zarfaty,

根据您的描述,"设计时间"的含义是什么?

According to your description, what is your meaning of "design time"?

>>为什么在我的项目引用中仅包含设计器.dll?设计时间有何不同?

>>Why is it not enough to include the designer .dlls in my project references ?how is design time different ?

>>将设计器.dlls包含在参考路径"对话框中,这之间有什么区别? (保存在.user文件中)与.csproj引用?

>>and what is the difference between including the designer .dlls in the "References Paths" (saved in .user file) vs the .csproj references ?

如果您在桌面上有一个名为A的dll文件,并且将桌面路径添加到参考路径",则为您分享一个示例.然后,当我通过右键单击引用"来添加引用时,我们会发现A.dll文件已在 参考管理器框.如果我们不添加此路径,则需要单击浏览器以找到它.

I share you an example, if I have a dll file named A in desktop, and I add the desktop path to "References Path". Then when I add a reference via right-clicking the Reference, and then we will find A.dll file has been listed in Reference Manager box. If we don’t add this path, we need to click browser to find it.

添加A.dll后,我们可以在< ItemGroup>中看到它. .csproj.

After adding the A.dll, then we could see it in <ItemGroup> of .csproj.

此外,以下博客介绍了参考优势,希望该博客对您有所帮助.

In addition, the following blog describe the advantage for reference, I hope this blog may be helpful for you.

http://www.codeproject.com/Articles /184718/在Visual Studio中使用参考路径

免责声明:此回复包含对第三方万维网站点的引用. Microsoft为方便您而提供此信息. Microsoft不控制这些站点,也未测试任何软件或在以下站点上找到的信息 这些网站;因此,Microsoft无法对在此找到的任何软件或信息的质量,安全性或适用性做出任何陈述.使用Internet上发现的任何软件都存在固有的危险,Microsoft提醒您. 您需要先确保完全了解风险,然后才能从Internet检索任何软件

Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet

此致

奥斯卡


这篇关于VS .dll参考系统如何用于设计时和运行时组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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