首页 > 解决方案 > 如果重新添加 DLL 引用将失败

问题描述

我的 C# Framework 4.6.1 项目引用了一个 Net DLL。(DLibDotNet.Native.DLL)

我的项目编译得很好。我清理了项目,重建它,它仍然可以正常工作。

现在,当我删除对 DLL 的引用并重新添加它时,我收到错误消息

Couldn't add reference to DlibDotNetNative.dll. Make sure that the file is accessible and that it's a valid assembly or COM component.

尝试使用 TlbImp.exe 会返回以下错误:

"The input file is not a valid type library."

取消引用后无法再次引用它的原因可能是什么?

标签: c#dll

解决方案


推荐阅读