I’ve got a .Net Framework 4.7 C# library that uses System.ServiceModel.ServiceHost, which is not available in the .Net Core framework.
When I call the library from within a .Net Framework 4.7 application, the ServiceHost initializes just fine. If I call the same library from within a .Net Core 3.1 application, it fails with System.TypeLoadException: 'Could not load type 'System.ServiceModel.ServiceHost' from assembly 'System.ServiceModel
Loading nuget packages like System.ServiceModel.Primitives does not fix it.
What options do I have to make this work?