如何添加一个项目作为另一个项目的参考 [英] How to add a project as a reference of another project

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

问题描述

我正在尝试添加一个包含一些类的项目作为对另一个项目的引用,但是我没有得到,您的所有建议都会很棒

I'm trying to add a project that contains some classes as a reference to another project, but I have not got, all your suggestions will be great

谢谢

推荐答案

执行以下操作:

  1. 打开文件菜单.
  2. 选择添加,然后选择现有项目
  3. 将所需项目添加到解决方案中
  1. Open the File menu.
  2. Choose Add, then Existing project
  3. Add the project you want into your solution

s

  1. 解决方案资源管理器中,选择要引用其他项目"的项目的参考项.

  1. From the solution explorer, select the References item of the project you want to need to reference the "other project" into.

点击添加参考

选择项目项

将其他项目添加为对主项目的引用.

Add your other project as reference to the main project.

或者,您可以将另一个项目编译为DLL并将其(作为dll)添加到您的主项目中.

Alternatively, you can compile the other project as DLL and add it (as dll) to your main project.

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

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