开发者

Project dependency in Visual Studio

In Visual Studio, I have two C++ projects - Gui.vcproj and Dll.vcproj.

Gui is an application and Dll produces a DLL.

What's the best way to make the dependency resolution automatic?

I tried adding Dll.vcproj into Gui.vcproj's referenc开发者_JS百科es, but it doesn't seem working.


  • Create a solution
  • Add Gui.vcproj and Dll.vcproj to the solution
  • From solution explorer window, right click the solution yuo just created.
  • Choose Project dependencies.
  • Select the project you want of these two, and check the 'Depends on' check box.


Put both projects into a common solution and specify "Project dependencies" in the solution properties. That's exactly what "Project dependencies" are for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜