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):
- Create a new Class Library project
- Add there the .licx file
- Add there a dummy class
- Build the assembly
- In the main app reference that assembly
- Call typeOf(that dummy class) during the app startup to ensure that the assembly is loaded
- DO NOT (!!!) put the built on the step [4] assembly into any public repo