I have a console application on net 5.0. I'm trying to load assembly at runtime:
Assembly loadedAssembly = Assembly.LoadFrom(assemblyPath);
var controllers = loadedAssembly.GetExportedTypes();
Method GetExportedTypes
throws this exception
Could not load file or assembly 'Microsoft.AspNetCore.Http.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
I don't have such library in any of my project files. Assembly also has target framework 5.0
Can't find similar error by search in internet. What it can be?