Is there something special needed to get a .NET 5 application to load DLLs at runtime?
In any .NET 5 project I am building, and no matter how I reference said DLLs whether to Nuget package manager, or referencing existing assemblies, my applications fail to load any and all externally sources DLLs. These DLLs have been source either through Nuget using the Visual Studio Nuget Package manager, or building from sources myself and targeting .NET5.0 in the project files.
Example error:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'MySql.Data, Version=8.0.26.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'. The system cannot find the file specified.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at DarkRift.Server.PluginFactory.AddFile(String file, DependencyResolutionStrategy dependencyResolutionStrategy, String searchedDirectory) in C:\Users\scotm\Desktop\Unity\DarkRift 2.10.1 Sources\DarkRift.Server\PluginFactory.cs:line 164
System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=8.0.26.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'. The system cannot find the file specified.
File name: 'MySql.Data, Version=8.0.26.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'