我一直在编写一个程序,在程序中我必须压缩一些文件,所以我使用了一个名为 Ionic.Zip 的插件。
当我运行我的程序时,它完全正常,没有错误,但是现在当我在完成编写后尝试构建我的程序时,出现以下错误。
Code:
Warning 1 Could not resolve this reference. Could not locate the assembly "Ionic.Zip". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
and the same error for each form where I use the code to zip the files.
有什么想法会导致这种情况吗?
您正在引用 bin\Debug 文件夹中的 Ionic.zip。你不应该这样做。 bin\Debug 是易失性的,其内容可能随时被删除。相反,请将 DLL 放入项目文件夹中并从那里进行引用。这样,您将使用项目文件夹中的引用进行构建,但执行的应用程序将为自己创建一个副本,因为复制本地设置为 True。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)