Can't build a .NET Core project using dotnet publish when using RO/DA class libraries

Solution is to to build licenses into a separate assembly and referencing that assembly as a binary (so dotnet publish won’t have to call LC):

  1. Create a new Class Library project
  2. Add there the .licx file
  3. Add there a dummy class
  4. Build the assembly
  5. In the main app reference that assembly
  6. Call typeOf(that dummy class) during the app startup to ensure that the assembly is loaded
  7. DO NOT (!!!) put the built on the step [4] assembly into any public repo