Is it worth learning to use MSBuild?

前端 未结 10 2121
清酒与你
清酒与你 2021-02-18 15:20

I simply wondered whether people thought it was worth learning to use the MSBuild syntax in order to customise the build process for a .net project, or whether it is really not

10条回答
  •  一个人的身影
    2021-02-18 15:57

    If you develop in .net workshop, It does worth learning.
    I have integrated our build process with Jenkins - originally Hudson. As it mentioned above, MSbuild has steep learning curve.However once you grasp the fundamentals, you can start customizing the build. my impression so far - could be naive, bulk of the script is consisted of

    
       value
    
    
       List values
    
    
    
        Besides using for build, I successfully used MSBuild to create a module that manages
        configuration files such as web.config and foo.exe.config files. 
        it is a hybrid module that consists of .net console app, MSBuild script and batch file.
        what this module does is that during a project upgrade, it will create a XML transform       
        template with connection strings, endpoints and appSettings from old configuration
        files. 
        after the project has been upgraded, the module will transform newly deployed  
        configuration
        files without affecting any new entries. if you have dozens of configuration files this  
        is very effective. 
    

提交回复
热议问题