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
166
votes
7 answers

Compare version numbers without using split function

How do I compare version numbers? For instance: x = 1.23.56.1487.5 y = 1.24.55.487.2
Sankar M
  • 4,549
  • 12
  • 37
  • 55
158
votes
6 answers

Best practices/guidance for maintaining assembly version numbers

I'm looking for pointers, suggestions, and even dictation on how to manage the three different assembly version numbers for a .NET assembly. The Product version is the simplest, as this seems would normally be dictated by business. Then, the file…
ProfK
  • 49,207
  • 121
  • 399
  • 775
158
votes
4 answers

How do I switch to another subversion branch in Intellij?

What is the concept of switching branches in IntelliJ? I must be either blind or an idiot... I would assume there'd be a "switch to copy" option or something like that, but there is none... EDIT for clarification: my prev IDE had a simple "switch to…
PeterP
  • 4,502
  • 7
  • 22
  • 21
151
votes
7 answers

API Versioning for Rails Routes

I'm trying to version my API like Stripe has. Below is given the latest API version is 2. /api/users returns a 301 to /api/v2/users /api/v1/users returns a 200 of users index at version 1 /api/v3/users returns a 301 to /api/v2/users /api/asdf/users…
maletor
  • 7,072
  • 7
  • 42
  • 63
147
votes
10 answers

How to manage REST API versioning with spring?

I've been searching how to manage a REST API versions using Spring 3.2.x, but I haven't find anything that is easy to maintain. I'll explain first the problem I have, and then a solution... but I do wonder if I'm re-inventing the wheel here. I want…
Augusto
  • 28,839
  • 5
  • 58
  • 88
138
votes
9 answers

Build and Version Numbering for Java Projects (ant, cvs, hudson)

What are current best-practices for systematic build numbering and version number management in Java projects? Specifically: How to manage build numbers systematically in a distributed development environment How to maintain version numbers in…
andersoj
  • 22,406
  • 7
  • 62
  • 73
138
votes
15 answers

How do I set the version information for an existing .exe, .dll?

As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. I want to be able to apply the following…
Carl
  • 2,483
  • 4
  • 28
  • 30
137
votes
11 answers

Setting the version number for .NET Core projects - CSPROJ - not JSON projects

This question is very similar to Setting the version number for .NET Core projects, but not the same. Using the latest stable version of .NET Core at the time of writing (1.1) and VS2017, .NET Core has switched from JSON based project files to…
Jay
  • 9,561
  • 7
  • 51
  • 72
136
votes
16 answers

How do you version your database schema?

How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code.…
Eran Galperin
  • 86,251
  • 24
  • 115
  • 132
131
votes
16 answers

Database Design for Revisions?

We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this: e.g. for "Employee" Entity Design 1: -- Holds Employee Entity "Employees (EmployeeId,…
Ramesh Soni
  • 15,867
  • 28
  • 93
  • 113
129
votes
4 answers

How do you manage the underlying codebase for a versioned API?

I've been reading up on versioning strategies for ReST APIs, and something none of them appear to address is how you manage the underlying codebase. Let's say we're making a bunch of breaking changes to an API - for example, changing our Customer…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
126
votes
10 answers

How to perform better document version control on Excel files and SQL schema files

I am in charge of several Excel files and SQL schema files. How should I perform better document version control on these files? I need to know the part modified (different part) in these files and keep all the versions for reference. Currently I am…
Marcus Thornton
  • 5,955
  • 7
  • 48
  • 50
117
votes
24 answers

A regex for version number parsing

I have a version number of the following form: version.release.modification where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing. So…
Andrew Borley
  • 1,684
  • 2
  • 11
  • 13
116
votes
12 answers

How can I auto increment the C# assembly version via our CI platform (Hudson)?

Myself and my group are horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this causes a lot of headaches. We're getting a lot better with our practices via our CI platform and…
Allen Rice
  • 19,068
  • 14
  • 83
  • 115
115
votes
8 answers

Automatically update version number

I would like the version property of my application to be incremented for each build but I'm not sure on how to enable this functionality in Visual Studio (2005/2008). I have tried to specify the AssemblyVersion as 1.0.* but it doesn't get me…
Robert Höglund
  • 10,010
  • 13
  • 53
  • 70