public static void Run() { // ExStart:ApplyLicenseUsingFile Aspose.Tasks.License license = new Aspose.Tasks.License(); license.SetLicense("Aspose.Tasks.lic"); // ExEnd:ApplyLicenseUsingFile } }