I use DotNetZip library and forgot to copy one .dll with my .exe file and that’s why I cannot run my exe on another PC or even from other folder. How should look pre(post)-build event like to copy all .dll’s from lib folder to release one?
Share
How have you referenced the DLL, and where are you copying the exe from?
When you build the project, if the DLL is referenced correctly it should be included in the output folder (usually
DebugorReleasedepending on the build configuration.If this isn’t happening, in Solution Explorer expand references then right click the reference to the dll and click ‘properties’. Change “Copy Local” to true.