I have \"inherited\" a new (old?) Winforms project and would like to put it onto our build server (Bamboo). That build server has only the absolute minimum (.NET 3.5 and not muc
We have components from other company but the approach should work if .Net licensing model is used in third-party library.
If you have licenses.licx
file then library probably uses .Net licensing model. During build process it uses lc.exe utility to build binary licenses file and then it is included in assembly as embedded resource.
What you need to do:
YourApp.exe.licenses
file using lc.exe. Other way is to build the solution that contains licenses.licx
and get it from obj\Debug
or obj\Release
directory. This step should be done on machine where the components are installed and registered. Also it may require to enter license code as in our case.YourApp.exe.licenses
to project as embedded resource.Open .csproj of your application and edit the entry for YourApp.exe.licenses
file. You will have something like this
It should be changed to
YourApp.exe.licenses
This is needed to exclude namespace from resource's name.
I'm not sure how the lc.exe works but you will probably need to rebuild YourApp.exe.licenses
file from time to time.