Versioning .NET builds

后端 未结 8 1371
萌比男神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:56

    I use [Major].[Minor].[BuildNumber].[revision]

    I can then trace back to a build, which will give a changeset, which will give a work item etc.

    You can use the community build tasks or I roll my own.

    I do the same for MSI's and DacPac's

    basically attrib the assemblyinfo file and then update the number using a regex, on a daily build leave the net version at the same value and just update the file version, so you can maintain compatability

    the same method for the MSI's and the Dacapac's just different locations. in the MSI i have a Buildparams.wxi which has the following structure

    
    
          
    
    

    Productversion is then used as var.Productversion in the wix scripts. pre build i update the 1.2.3.4 with the build number i want to use

提交回复
热议问题