I\'ve ran into a weird problem.
I basically have my own web-stack for .NET-core which I\'ve built into a few .dlls, and I want to reference these from another ASP CO
for load the external dll
in core
project, needed to:
Microsoft.Extensions.DependencyModel
NuGet package installed in your project.The .NET Core Tooling in VS 2017 (< 15.3 preview) / .NET CLI < 2.0 doesn't fully support referencing assemblies on disk. You need to package the library up as a NuGet package or use a project reference ("same solution"). The technical reason is that all the required assemblies and versions are resolved during compilation and written to the .deps.json
file. When loading arbitrary assemblies, this might fail because either the assembly or its dependencies cannot be found (or a conflict with each other).