Ho to disable license geration with VisualStudio

Posted by: francksix on 22 April 2022, 10:43 am EST

    • Post Options:
    • Link

    Posted 22 April 2022, 10:43 am EST

    Hi!

    I want to generate a license only once on a specific “Professional version” machine. On my other machines, I don’t want Visual Studio to try to generate this “Demo Version” license. The idea is that I have a team responsible for producing the reports (which have an official license installed) and another which never touches the reports, but as the module which uses Active Reports is referenced they get a series of warning that the Demo license has expired. How do I get Visual Studio to skip license generation? I have no problem that the reports cannot be output on these developers’ machines.

    Thank you!

  • Posted 25 April 2022, 5:49 am EST

    Hello Francis,

    For this isolate all your ActiveReports process in a class library and license your class library using the .gclicx file. You can learn more about this on the Licensing Compiled Code page of our documentation. Please refer to the following link:

    https://www.grapecity.com/activereportsnet/docs/latest/online/licensing-compiled-code.html

    This way you will be able to have reference your class library in your application and since you will not have any ActiveReports packages in your main application you will not need any license all the developer machine.

  • Posted 27 April 2022, 12:08 pm EST

    Hi akshay.rajput,

    I have already embedded the gclicx file into a resource It work well for the exexecution, But at each time I build my solution ActiveReport try to regenerate this file. How to avoid this comportment when I have already embeded the gclicx file ?

  • Posted 29 April 2022, 1:24 am EST

    Hello Francis,

    Please add the following line in the csproj file to disable the generating the license:

    <PropertyGroup>   
       <DisableGclm>True</DisableGclm>
     </PropertyGroup>
    

    Regards,

    Akshay

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels