Dependencies of references not copied to output directory

后端 未结 3 1224
长情又很酷
长情又很酷 2021-01-03 23:37

I have a CommonUtils lib I have built into a dll which I file reference from several of my projects. CommonUtils depends on log4net.dll which was set as a file reference and

3条回答
  •  甜味超标
    2021-01-04 00:09

    This is by design. You need to think about the implications that automatic inheritance of references would cause. While you can logically see what the references should be, there is no such delineation to the compiler. You could, theoretically, end up reproducing the Framework and a good part of your OS if it walked the entire dependency tree.

    It definitely is a pain, and I agree with and understand your frustration, but I assume that Microsoft was not able to find a logical way to do this otherwise.

提交回复
热议问题