user3125470
user3125470

Reputation: 109

Building dll without statically linking

I've got project A and project B as part of a solution. Project A is dependent on project B, because it uses classes from project B. The easiest way to build a dll, is to put the two together, and build one dll out of that. Now assume, Project B gets updated every week or so.
Because of those regular updates, I would prefer to just build a dll for project A and use the source code of project B in the solution. So is there a way to achieve this, to build a dll and reference the "missing" files (files from project B) without statically linking them? Note: I want project B to stay as source code and not be a dll

Upvotes: 1

Views: 82

Answers (1)

Dai
Dai

Reputation: 155608

Yes - use a "Project Reference" in Visual Studio - it will update your build process so Project A is built after Project B, and Project A will also always have the latest IntelliSense on Project B.

https://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.120).aspx

Upvotes: 1

Related Questions