Med*_*Man 5 .net c# user-controls controls winforms
问题:我有一个WinForms控件('MyControl')依赖于myCli.dll,这是一个用C++ CLI编写的DLL.该组件是第三方(由另一个团队编写).myCli.dll依赖于myLibrary.dll,这是由另一方编写的.该控件存在于myAssembly.dll中,这是一个C#控件和资源库.
当myCli.dll没有对myLibrary.dll的依赖时,我的控件运行得很好.我可以将它添加到表单,构建它,等等.但myCli.dll的新版本问世,我重新反对它.突然,IDE表现得很糟糕.关键问题似乎是IDE无法解析myLibrary.dll上的myCli.dll依赖关系.
当我尝试将控件从工具箱拖到设计图面时,我收到错误:
"Failed to create component 'MyControl'.
Run Code Online (Sandbox Code Playgroud)
错误消息如下:
'System.IO.FileNotFoundException: Could not load file or assembly 'myCli.dll, Version 0.0.0.0, Culture=neutral, PublicKeyToken=2fb8da784abc560a' or one of its dependencies.
The system cannot find the file specified"
Run Code Online (Sandbox Code Playgroud)
我的信念是,如果我能弄清楚myLibrary.dll的位置,我将解决参考问题.我肯定不知道.有人知道我应该怎么做来解决这个问题吗?