c# - Add reference to assembly which in turn has a project reference -


i have solution 1 has 2 projects -> project , project b. project references project b. (i.e project dependent on project b).

i have solution 2 has multiple projects. 1 of projects here references dll (copied folder in solution 2 bin\debug of project soln 1).

solution 2 compiles fine. during runtime of solution 2 when code tries execute code dll dependent on dll b, throws exception says not load file or assembly dll b. if add reference dll b, error goes away.

do have refer dll b or there way in can avoid referring dll b in solution 2 because not use explicitly?

first order of business in visual studio is, if have access source codes, csproj, better idea load these projects each solution depends on. second order of business is, best way reference library has project in solution reference whole project, instead it's dll output. not have solve issues paths (debug/release) , works more smooth , during compilation certain, either last updated dll used or gets compiled when necessary.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -