Infragistics components on build server

前端 未结 5 1727
陌清茗
陌清茗 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 20:57

    I could build Team City project based on answer by marc_s i.e. by replacing existing license file with blank licenses.licx.

    But there was another hick up when i tried opening aspx pages having infragistics controls on local machine, it gives error as i have infragistics installed on local machine but my licenses.licx is blank.

    I found a workaround for this as below:

    • Created a new configuration in Visual Studio specifically to build projects in Team City

    
        
          
        
        
    
    
    • Added 'BeforeBuild' target as mentioned by marc_s additionally i have added a condition that this task will be executed when my build is using 'CI_TeamCity_Build' and not for 'Debug' or 'Release' build

    • Team City build configuration is using above configuration in "VS Solution Build Runner" step. Due to 'BeforeBuild' target in csproj file, it replace license file with blank one and build succeeds.

    • On my local machine I continue using 'Debug' or 'Release' build as it won't replace licenses.licx file with blank one. All infragistics controls appear on .aspx page without any issue.

提交回复
热议问题