如何添加到一个WinForm项目的引用? [英] How to add a reference to a WinForm project?

查看:751
本文介绍了如何添加到一个WinForm项目的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有不同的解决方案的几个WinForm的项目。

I have a few winform projects in different solutions.

如果我在同一个解决方案二WinForm的项目,当我添加一个参考,我去项目选项卡上,并从那里我可以参考我的其他项目。但我怎么能引用一个winform项目时,它是在一个不同的解决方案吗?似乎有没有文件当我浏览Windows资源管理器,我可以使用。

If I have two winform projects in the same solution, when I add a reference, I go on the Projects tab and from there I can reference my other projects. But how can I reference a winform project when it is in a different solution? There seems to be no file I can use when I browse the windows explorer.

感谢您!

推荐答案

使用在浏览标签中的添加引用对话框,并选择组装你会要添加为从文件系统引用:

Use the Browse tab in the Add Reference dialog and select the assembly you would like to add as reference from the file system:

这将是一个不错的主意,有你的第二个解决方案在 LIB 文件夹中你把由它必需的,以便它是完全独立于所有第三方组件。所以这里面 LIB 文件夹,你干脆把生成的汇编从其他项目中一些其他的解决方案。注意,组件并不一定意味着DLL。这可能是一个EXE文件,以及

It would be a good idea to have a lib folder inside your second solution in which you would put all third party assemblies that are required by it so that it is totally independent. So inside this lib folder you would put the generated assembly from some other project in some other solution. Note that an assembly doesn't necessarily means DLL. It could be an EXE as well.

这篇关于如何添加到一个WinForm项目的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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