Versioning .NET builds

后端 未结 8 1389
萌比男神i
萌比男神i 2020-12-14 22:27

Just wondering what\'s the best approach to versioning of .NET builds?

I use:

  • TFS 2013 for version control
  • TFS gated check-ins
  • Wix 3.
8条回答
  •  别那么骄傲
    2020-12-14 22:40

    We have a similar requirement and make use of the NANT ASMINFO TASK. During the TFS build we invoke this additional NANT target which creates a new AssemblyVersion.cs file.

    
    
        
        
        
        
    
    
        
        
        
        
        
        
        
    
    
        
    
    

    Please make note of the property ${version.number}, which is actually set based on your requirement. Then we loop through the exisiting Assemblyversion.cs files and make them read only and then replace it with the new file which we created.

    
    

    As you might know, this target gets executed before compilation.

提交回复
热议问题