Questions tagged [versioning]

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.

The following are some popular versioning software used:

  1. Git
  2. Subversion (SVN)
  3. Microsoft TFS
3122 questions
47
votes
7 answers

Versioning in SQL Tables - how to handle it?

Here's a fictional scenario with some populated data. For tax purposes, my fictional company must retain records of historical data. For this reason, I've included a version column to the table. TABLE EMPLOYEE: (with personal commentary) |ID |…
corsiKa
  • 81,495
  • 25
  • 153
  • 204
46
votes
5 answers

Properly Versioning Docker Images

Following on the 4-year-old question Docker image versioning and lifecycle management, because IMHO it did not address versioning Docker Images properly: I don't find this answer to be adequate, as there can be successive versions of the same tag.…
xpt
  • 20,363
  • 37
  • 127
  • 216
46
votes
5 answers

How to get exe application name and version in C# Compact Framework

My application has an exe and uses some DLLs. I am writing all in C#. In one DLL I want to write a method to get the application name and version from the version information in the exe. I understand that in full .NET I could use GetEntryAssembly,…
cja
  • 9,512
  • 21
  • 75
  • 129
45
votes
5 answers

How can I confirm what version of Jasmine I'm using?

If I recall there is a command in Jasmine that will log the exact version of Jasmine I'm running to the console, but I can't remember what it is. I am positive I have seen this before somewhere, and now that I actually need it I can't find it…
TheGuyWithTheFace
  • 2,615
  • 3
  • 13
  • 16
45
votes
9 answers

Versioning Database Persisted Objects, How would you?

(Not related to versioning the database schema) Applications that interfaces with databases often have domain objects that are composed with data from many tables. Suppose the application were to support versioning, in the sense of CVS, for these…
Chris Vest
  • 8,642
  • 3
  • 35
  • 43
44
votes
5 answers

When should I create a new branch?

I am starting a new project, and to experiment a little bit with the technologies used in the project (hello world examples...) I want to create something like a "playground" branch. Is it common to create a new branch "playground" or should I just…
Moonlit
  • 5,171
  • 14
  • 57
  • 95
43
votes
5 answers

Specify assembly version number as a command line argument in MSBuild

I would like to be able to specify the version number for all assemblies to be generated during a build as a MSBuild command argument like this: MSBuild.exe /p:version=5.4.3.0 I have looked over AssemblyInfoTask but it does not seem to me like a…
Radu M.
  • 1,271
  • 2
  • 14
  • 19
43
votes
8 answers

Embed timestamp in object code at compile time with C++

I want to perform a printf() to display when the currently executing code was last compiled. Does C/C++ provide a macro that gives you that resolves to a timestamp during compilation?
theactiveactor
  • 7,314
  • 15
  • 52
  • 60
41
votes
12 answers

What version numbering scheme do you recommend?

My question is, which version-naming scheme should be used for what type of project. Very common is major.minor.fix, but even this can lead to 4 number (i.e. Firefox 2.0.0.16). Some have a model that odd numbers indicate developer-versions and even…
Mnementh
  • 50,487
  • 48
  • 148
  • 202
40
votes
6 answers

Automatically incrementing a build number in a Java project

I'm using a versioning system that is represented by a.b.build where a is the overall version (will be 0 for prototype, alpha and beta versions, 1 for major release), b is the milestone version (along the lines of representing the proto, alpha, beta…
Scott Drew
  • 678
  • 1
  • 7
  • 11
40
votes
7 answers

Build numbers: major.minor.revision

How would you write a build.xml file, using neither custom code nor external dependencies (such as a shell script), that: Generates a build number of the form major.minor.revision (e.g., 01.02.34). Auto-increments the revision on each compile of…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
39
votes
2 answers

What versions of Swift are supported by what versions of Xcode?

I develop apps in Swift for a living. I enjoy the language and follow it as closely as I can. Yet, still, certain facts slip through, whether by me being blindsided, or by Apple being very quiet about them. Today, I discovered that Swift 3.3 and 3.4…
Ky -
  • 30,724
  • 51
  • 192
  • 308
38
votes
4 answers

Best practices for assembly naming and versioning?

I am looking out for some good practices on naming assemblies and versioning them. How often do you increment the major or minor versions? In some cases, I have seen releases going straight from version 1.0 to 3.0. In other cases, it seems to be…
Gulzar Nazim
  • 51,744
  • 26
  • 128
  • 170
37
votes
1 answer

How can I add Version info to my Console Applications?

It appears to be what console application projects generated by IDE's intrinsic wizard cannot have version resource managed by IDE <- note the emphasis here. Is there any workaround(s) for this issue? (i even ready to write an OTA wizard)
Premature Optimization
  • 1,917
  • 1
  • 15
  • 24
37
votes
1 answer

Semantic versioning of REST apis?

I've evaluated a number of versioning schemas for REST apis (header, url, …). So far, the most reliable approach seems to be the url option: It works with proxies, and does not rely on obscure schemas such as dates for versioning. Now, when I look…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425