❔ Cannot find .dll in referenced project

I have a class library targetting .NET Standard 2.0. This library references two nuget packages: NETStandard.Library (2.0.3) and NetTopologySuite.IO.Esri.Shapefile (1.0.0).

The class library builds fine.

I then have a console app project in the same solution that targets .NET Framework 4.8.1. This project references the class library project. The console ap builds without warnings or errors. However, when running the app, as soon as I hit the first line that references the class library, I get the following error:

"Exception thrown: 'System.IO.FileNotFoundException' in NetFrameworkTestApp.exe
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in NetFrameworkTestApp.exe
Could not load file or assembly 'NetTopologySuite.Features, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1' or one of its dependencies. The system cannot find the file specified."


Looking in the bin folder of the console app, I see the class library dll but not the two nuget packages' dlls. The dlls do exist in the bin of the class library. What am I missing here?
Was this page helpful?