D
D
Daniil Demidko2016-08-08 07:15:54
.NET
Daniil Demidko, 2016-08-08 07:15:54

How to remove System.IO.FileLoadException?

39bfed198aa24e8eb5cda331531cb3fc.jpg
I downloaded the VK.NET library from the official site, from here: https://vknet.github.io/vk/
I unpack the *.dll library from the *.nupkg file with the *.dll archiver.
I add to the project, I try to compile the simplest example.
The code crashes with an exception:

System.IO.FileLoadException: Failed to load file or assembly 'HtmlAgilityPack, Version=1.4.9.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of their dependencies

In the comments, for example, it is advised to install the latest version of HtmlAgilityPack with nuget.
I download it, unpack it in the same way and add it to the project - nothing changes, only now a warning appears:
Conflicts were found between different versions of the same dependent assembly. (MSB3247)

What can be done here?
How to get rid of this exception?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MrDywar Pichugin, 2016-08-08
@Daniro_San

No need to download anything from sites and unpack.
Open your project in Visual Studio and immediately go to the nuget package manager and from there find and install what you need.
VK.NET and HtmlAgilityPack are there.
https://www.nuget.org/packages/
Everything happens automatically including updates and dependencies. That's why nuget was invented.
Understanding NuGet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question