Search This Blog

Sunday, June 17, 2018

Are you merging your project DLLs and getting a Could not load file or assembly or one of its dependencies?

If you are facing the endeared "Could not load file or assembly or one of its dependencies" error, and you know your project merges its assemblies using ILMerge or alikes, make sure the dlls that is raising the exception was not accidentally left out the merge.

This is what happened in my case.
All I had to do was to add it to the merging, marking it with the <Ilmerge>True</Ilmerge> in the .csproj, like the others.

No comments:

Post a Comment