Visual Studio Project References inside solution

2020-04-04 15:19发布

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条回答
我欲成王,谁敢阻挡
2楼-- · 2020-04-04 15:45

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

查看更多
登录 后发表回答