Visual Studio项目引用解决方案 [英] Visual Studio Project References inside solution

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

问题描述

在解决方案中引用项目的最佳方式是什么。



我通过添加引用 - >项目添加了引用。但是它链接到释放DLL或调试dll。



我想在项目本身的引用,当我们编译项目,所有的引用项目必须编译

解决方案

如果这样做,您要引用一个项目本身,而不是一个DLL /程序集(从添加引用对话框中的浏览选项卡),那么您应该添加要引用到该解决方案的项目(添加...现有项目)。一旦在解决方案中,添加引用对话框将允许您从解决方案中的另一个项目(通过添加引用对话框中的项目选项卡)引用解决方案中的一个项目。


What is the best way to reference a project inside solution.

I added references via Add Reference --> Projects. However it links to either release DLL or Debug dll.

I want to have project itself in the reference, when we compile the projects, all the references projects must be compiled (through dependencies).

How to do this?

解决方案

If you want to reference a project itself, and NOT a DLL/assembly (from the Browse tab in the Add Reference dialog), then you should add the project you want to reference to the Solution (Add... Existing Project). Once it's in the Solution, the Add Reference dialog will let you reference one project in the solution from another project in the solution (via the Projects tab in the Add Reference dialog).

这篇关于Visual Studio项目引用解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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