MSbuild for updating the assemblyinfo file

前端 未结 5 2074
礼貌的吻别
礼貌的吻别 2021-02-13 19:24

I am writing a batch file to automate a series of tasks. One of these tasks is to update the version of the dlls in my solution, by editing the assemblyinfo.cs file in the vario

5条回答
  •  被撕碎了的回忆
    2021-02-13 20:02

    This is the MSBuild target code where I update all my assemblyinfo.cs files (You have to init AssemblyInfoFilesToUpdate items collections before using this target):

      
      
        
        
        
        
        
        
        
        
      
    

    I'm using FileUpdate task from MSBuildCommunityTasks.

提交回复
热议问题