vb.netreferencefile-not-founddllnotfoundexception

References added in VS aren't being recognized


I am making a VB.NET installer, using .NET Framework 3.0 and Visual Studio 2012. To unzip files obtained by my installer, I'm making use of ICSharpCode.SharpZipLib.Zip

When the .ZIP file downloads, and attempts to unpack, I am presented with an error stating that the DLL file for SharpZipLib was not found:

C:\Users\Bailey\Documents\Visual Studio 2012\net-20\ICSharpCode.SharpZipLib.dll

However when running in Debug mode on VS2012, it works perfectly fine. What's up?


Solution

  • The DLL should be in your Bin\Release folder so you'll have to copy it there. If the end user will need to make use of this assembly then you'll also have to distribute the DLL with your program (check the license for SharpZipLib to see what conditions there are).