I am trying to embed the license as a resource, but have not found any code to do this except for the following. What code would one use to set it to an item in My.Resources? I tried the following code
Dim license = New Aspose.Slides.License()
license.SetLicense(licenseStream) ’ It does not like it when I add the name of my embedded resource.
- In Visual Studio, include the .lic file into the project using the “File | Add Existing Item…” menu.
- Select the file in the Solution Explorer and set “Build Action to Embedded Resource” in the Properties window.
- In your code, invoke SetLicense that passes only the short name of the resource file