How to embed license file in an assembly

Hi,

I just bought the enterprise version of Aspose.Excel, and I have a question concerning the licensing mecanism.

Is it possible to embed the .lic file in our host application assembly as an embedded resource? On your website, you suggest to use the following :

License license = new License();
license.SetLicense("Aspose.Excel.lic");

Is it possible to embed the .lic file like this article suggest :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrflicensecompilerlcexe.asp?frame=true

I have tried without success, am I doing something wrong?

thanks a lot,

Fred

Hi Fred,

Yes. You can build the license file as an embedded resource. It’s very simple:

  1. Open you project in VS.NET.
  2. Include the license file in your project
  3. In “Solution Exploere” window, right-click the license file
  4. In “Properties” window, select the “Build Action” to “Embedded Resource”
  5. Rebuild your project.

And please check http://www.aspose.com/Wiki/default.aspx/Aspose.Purchase/HowToFixLicenseClassConflict.html.