+1 vote

With Azure Functions, you don't have access to the \bin folder as in other projects, so adding the license file to the Project as 'Content' or 'EmbeddedResource' doesn't work. How can I get the license into the same place as the DLL??

reshown by

1 Answer

0 votes
Best answer

Putting the license xml file in the root, and marking it as Content should work.

Consider using LicenseHelper class at startup to check if the license is valid:

LicenseStatus status = LicenseHelper.GetLicenseStatus();
string fileName = LicenseHelper.GetLicensePath();   

if (status != LicenseStatus.Valid)
    throw new Exception(
        string.Format("License is not valid: '{0}'. Loaded from '{1}'.", 
by (298k points)