almost resolves everything, except for the code actually using the WebHost. Maybe you can isolate this code in a separate NuGet package?
Also, as a library you might considering lowering the dependencies to the lowest possible version (f.e. 2.1.0 instead of 2.2.7) to prevent forcing consumers to upgrade to at least those versions when they want to use your project. (Basically only require higher versions if bugfixes/used features require this)
It's not possible to use (parts of) ComPact from a .NET Standard library.
Quick testing shows that changing the NuGet references:
almost resolves everything, except for the code actually using the WebHost. Maybe you can isolate this code in a separate NuGet package?
Also, as a library you might considering lowering the dependencies to the lowest possible version (f.e. 2.1.0 instead of 2.2.7) to prevent forcing consumers to upgrade to at least those versions when they want to use your project. (Basically only require higher versions if bugfixes/used features require this)