Get minor and major version from MSBUILD script

后端 未结 3 1472
借酒劲吻你
借酒劲吻你 2020-12-15 11:20

I\'m using Msbuild to compile and generate .zip files and installers and I need the version number of my assembyInfo.

I\'m using this code.



        
3条回答
  •  不思量自难忘°
    2020-12-15 12:13

    Finally I have used this code that not require additional task libraries

    
        
            
        
        
            (\d+)\.(\d+)
            %(myAssemblyInfo.Version)
            $([System.Text.RegularExpressions.Regex]::Match($(In), $(Pattern)))
        
    
    

提交回复
热议问题