I build using a CI/CD setup and the app is running in trial mode

<< Click to Display Table of Contents >>

Navigation:  Gnostice Document Studio .NET > Frequently Asked Questions (FAQs) > Licensing >

I build using a CI/CD setup and the app is running in trial mode

It is necessary to install the Gnostice license on both the developer and build machine. However in some cases (for example using a cloud and/or CI/CD setup) it may not be possible to install the license on the build setup. In such cases the following steps can be followed to manually provision the run-time license in the application.

 

1.On the developer machine that has the Gnostice license installed build all the projects that reference Gnostice libraries. Make sure to build both the Debug and Release configurations.

2.The compiler will create the <AppName>.exe.licenses (or <AppName>.dll.licenses) file in the obj folder of each of the projects that is built.

3.Commit these *.licenses files to source control so that it is fetched and used during build on the CI setup.

4.Ensure that the CI does not do a "clean" or "rebuild" task since these tasks would delete the *.licenses file. Usually there isn't a need to do a "clean" or "rebuild" step since the source is freshly fetched from the repo for each build.