Infragistics components on build server

前端 未结 5 1781
陌清茗
陌清茗 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条回答
  •  萌比男神i
    2021-02-01 20:58

    The only way I found to solve this problem is this:

    • create an absolutely empty (0 byte length) file licenses.licx in my folder where the solution resides
    • during initial stages of the build, the source is extracted from my source repository
    • when the time comes, just before the build begins, I copy this empty licenses.licx over all the existing licenses.licx in the various projects' Properties directory

    With this, now I have both my interactive experience working (since the proper licenses.licx files are present), but my automatic build also doesn't break (since that empty licenses.licx file I copied over all the real ones doesn't cause any aborts in the build)

    Seems a bit hackish - but it works. Hope that helps someone, somewhere, some day.

    Update: I added this BeforeBuild step to my MSBuild build file to copy the empty *.licx file to the locations I need:

    
       
           
       
    
       
    
    
    

    Since I need to replace this *.licx file in several places, I actually have several of those tasks to achieve my goal.

提交回复
热议问题