Infragistics components on build server

前端 未结 5 1719
陌清茗
陌清茗 2021-02-01 20:21

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

5条回答
  •  温柔的废话
    2021-02-01 21:11

    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:

    1. Generate 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.
    2. Exclude licenses.licx from project.
    3. Add YourApp.exe.licenses to project as embedded resource.
    4. 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.

    5. Build - Check - Commit.

    I'm not sure how the lc.exe works but you will probably need to rebuild YourApp.exe.licenses file from time to time.

提交回复
热议问题