natemcmaster / DotNetCorePlugins

.NET Core library for dynamically loading code
Apache License 2.0
1.59k stars 227 forks source link

.Net Core 3.1 Cannot load assembly, "An item with the same key has already been added" #199

Closed Grendizr closed 3 years ago

Grendizr commented 3 years ago

Hi.

I am experiencing same issue as 171. Trying to use the PluginLoader on Net Core 3.1 project and this is failing with message "An item with the same key has already been added" while trying to load an assembly for the first time.

To Reproduce I have created a small poc that you can maybe try to get and use to reproduce the issue.

Thanks in advance for your fast feedback

Regards Seb

note : I am opening this new thread, as I am not sure people will notice replies on the closed one.

Grendizr commented 3 years ago

Using this thread I was able to fix the problem. Indeed the publish used in a Build Post Event was using different case for the output folder, thus had an impact on the load of the Assembly (as explained on the provided link).

Thank you very much @vitek-karas :)

Closing this bug ...