Morning folks. Beginner C# programmer here. I've installed SevenZipSharp successfully, added SevenZipZharp.dll as a reference in my project, added 7z.dll to my project's /bin/Debug/ directory, and everything is working great. In my sample project,
I'm able to package and extract files with no problems.
However, I need to distribute this application to multiple users, whose PCs do not (and will not) have 7-zip and SevenZipSharp installed. When I attempt to add 7z.dll as a reference in my project, I get an error (text below). Since 7z.dll
is only in the /bin/Debug/ directory, it is not included in the assembly when I deploy it.
Error: "A reference to 'C:\Program Files\7-Zip\7z.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assemply or COM component."
After reading the "Important Update"
here, I believed that the latest version (4.65) would allow me to use the 7z.dll directly in my project. I was mistaken. I get the same error message.
So, then, how do I add the 7z.dll to my C# project as a reference (not just sitting in the /bin/Debug/ directory)?
Any help is appreciated. Thanks.