0
當我添加一個.dll文件在C#應用程序的引用它顯示了一個錯誤:的Dll不匹配裝配
A reference to the "....dll" could not be added.
Please make sure that the file is accessible and that it is a valid assembly
or COM component.
當我添加一個.dll文件在C#應用程序的引用它顯示了一個錯誤:的Dll不匹配裝配
A reference to the "....dll" could not be added.
Please make sure that the file is accessible and that it is a valid assembly
or COM component.
你確定你的DLL是不是在受保護的文件夾?例如,你需要一些管理員權限的某些文件夾..嘗試將您的DLL到另一個文件夾,然後嘗試添加並編譯它
99.9%的可能性是該消息是準確的。您選擇的DLL *必須是託管程序集或包含類型庫的COM服務器。您不能添加對包含非託管代碼的常規DLL的引用。這需要解決。 – 2012-04-20 11:19:29