Referenced library isn't copied

前端 未结 3 1573
暖寄归人
暖寄归人 2020-12-19 05:55

I have ProjectA(WPFApplication) that references ProjectB(ClassLibrary). Inside ProjectB i have wpf window that uses contro

3条回答
  •  萌比男神i
    2020-12-19 06:48

    The reason for this is that visual studio only copies resources to the output folder if Copy Local is set. Just set the reference to Copy Local and you should be fine.

    Check out this link on how this works.

    When you reference ProjectA, the references from ProjectB is not automatically referenced. For this to work, you need to add a reference to ThirdParty.dll from ProjectA as well if you only use it in XAML. The compiler does not copy references that are only used in XAML. But if you use them in code, they are copied.

    This is the same issue as discussed here

提交回复
热议问题