soldierq / QLicense

A Ready To Use Software Licensing Solution in C#
MIT License
181 stars 93 forks source link

Bogus "INVALID" responses - How to handle #17

Open ajtruckle opened 2 years ago

ajtruckle commented 2 years ago

If you are trying to add this to a DLL which is run by a CAD application, you need to change the way you find the path to the license file:

System.Reflection.Module mod = GetType().Module;
string pathlic = Path.Combine(Path.GetDirectoryName(mod.FullyQualifiedName), "license.lic");