Visual Studio Project References inside solution

非 Y 不嫁゛ 提交于 2019-12-19 17:06:08

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/322992/visual-studio-project-references-inside-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!