开发者

Project dependency in Visual Studio

开发者 https://www.devze.com 2022-12-09 04:56 出处:网络
In Visual Studio, I have two C++ projects - Gui.vcproj and Dll.vcproj. Gui is an application and Dll produces a DLL.

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

精彩评论

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