I'm automating builds and deployments in Azure DevOps for our company. Currently developers are building locally using Visual Studio 2015 and sending a zip file to QA for testing and manual deployment. When building an application locally in Visual Studio 2015 and using the licenses.licx file, it runs fine on the QA server. In Azure DevOps, I'm using a Microsoft 2019 Hosted agent for automated builds. Since it's not an easy task to install ChartFX on a hosted agent and the build fails on licenses.licx(1, 0): error LC0004:, I tried using the license manager locally to create and embed the exe.licenses in the project as mentioned in this posting:
https://www.textcontrol.com/blog/2016/11/28/using-tx-text-control-net-with-visual-studio-team-services-vsts/
The build works in Azure DevOps with the embedded exe.licenses, but when it's deployed to the QA server we keep getting the following error:
Couldn't get Run Time license for 'ChartFX.WinForms.Chart'
We are currently using Chart FX 7. Please let me know if you need further explanation on my issue and if you have any ideas how to build and deploy licenses on a hosted agent.