简体   繁体   中英

Adding .dll to a VS 2012 Setup Project

My project has a .dll as a Reference which is (HtmlAgilityPack) and when i do a Setup Project, it returns an error that

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'HtmlAgilityPack,
Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its   
dependencies. The system cannot find the file specified.

How can i solve this issue ?

You need to make sure that the required DLLs are either already present on the target system or are installed along with your application. This error message means that a required DLL was not found and thus could not be loaded.

If you use a Visual Studio Setup project to install your application, look under "Dependencies" whether the required DLLs are present and are also included with the setup.

If it is only a reference dll and not suppose to be installed then you can just add it to the root of you execution file where yourapplication.exe is available.

for making it as a single setup file you can get the setup maker of Visual Studio or use other available software.

Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM