mapster

How to get class library assembly reference in .NET Core project?

三世轮回 提交于 2021-02-09 07:01:41
问题 I have an ASP.NET Core project (netcoreapp2.0) that references models in a class library project (netstandard2.0). I'm trying to use Mapster to map objects stored in the class library. The documentation for Mapster says to call the Scan method from Startup.cs using the code: TypeAdapterConfig.GlobalSettings.Scan(assembly1, assembly2, assemblyN) Where I'm having issues is how to best get the assembly reference for the class library to pass to the Scan method. I think this is more of a general