MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

SCM Versioning Done Right: Four-Part File Versions, Build Numbers, and Safer Installers

Software versioning in Software Configuration Management (SCM) is the practice of assigning consistent versions to files and builds so teams can trace artifacts, reproduce releases, and avoid upgrade breakage. This guide is for build engineers, release managers, and developers who want a practical scheme they can enforce in CI and setup processes.

Originally published on 2012-05-23; fully revised and updated.

This rewrite is based on guidance attributed in the original article to The Build Master: Microsoft’s Software Configuration Management Best Practices. See the original post for historical context.

Versioning in software configuration management

Why versioning matters in SCM

A reliable versioning scheme helps teams answer critical questions quickly: What source produced this binary? Can we rebuild that release? Is this upgrade safe? The source material highlights these operational benefits.

  • Trace product binaries back to source and ownership.
  • Re-create previous builds using meaningful labels or tags.
  • Reduce component conflicts (historically called “DLL hell”).
  • Support setup, upgrades, and service pack workflows.
  • Help support and QA identify exactly which bits are running.

A practical four-part file version format

The original guidance recommends a four-part file version pattern:

major.minor.build.revisionCode language: CSS (css)

Version fields and typical ownership

FieldTypically assigned byHow often it changesPrimary purpose
MajorComponent or product ownerRarely during a release cycleInternal product line or major release identity
MinorComponent or product ownerRarely during a release cycleIncremental release indicator
BuildBuild or release automationEvery buildUniquely identifies generated artifacts
RevisionBuild or servicing teamUsually during servicingPatch, hotfix, or replacement context

Build number strategy: incremental counters vs date stamps

The source explicitly recommends a simple n = n + 1 build number for each released build. The main reason is clarity when you have multiple releases on the same day.

StrategyExampleStrengthsWeaknessesFit with source guidance
Incremental counter100, 101, 102Simple ordering, unique per build, easy rollback discussionsNeeds persistent counter storageRecommended
Date-based only20261013Human-readable dateAmbiguous for multiple same-day buildsNot recommended
Date plus suffix20261013.2Distinguishes same-day buildsConvention drift and parsing inconsistency riskUse only if governance is strict

Where versioning fits in the build and release workflow

flowchart TD
    A[Code merged to main] --> B[CI starts build]
    B --> C[Build counter increments]
    C --> D[Artifacts get version stamp]
    D --> E[Tests run]
    E --> F{Release approved}
    F -- no --> G[Fix and rebuild]
    F -- yes --> H[Publish package]
    H --> I[Installer compares existing versions]
    I --> J[Upgrade only when candidate is newer]

This flow keeps source control, build identity, and deployment behavior aligned. Without this alignment, support teams lose traceability and upgrades become risky.

Example: stamping version values in CI

The following examples show a minimal pattern: persist a build counter, construct major.minor.build.revision, then stamp artifacts.

MAJOR=4
MINOR=2
PREV_BUILD=$(cat .ci/build-counter)
BUILD=$((PREV_BUILD + 1))
REVISION=0

VERSION="$MAJOR.$MINOR.$BUILD.$REVISION"
printf "%s\n" "$BUILD" | tee .ci/build-counter
printf "%s\n" "$VERSION" | tee build/version.txt

echo "Building version: $VERSION"Code language: JavaScript (javascript)
steps:
  - name: Compute version
    run: ./scripts/compute-version.sh
  - name: Build
    run: ./scripts/build.sh "$(cat build/version.txt)"
  - name: Publish metadata
    run: ./scripts/publish-metadata.sh "$(cat build/version.txt)"Code language: JavaScript (javascript)
# Example: inspect a built DLL file version
(Get-Item ".\bin\MyComponent.dll").VersionInfo.FileVersionCode language: CSS (css)

Installer rules that reduce component conflicts

The original article focuses heavily on setup behavior in Windows component ecosystems. The core principle is still useful: an installer must make deterministic, version-aware decisions.

  • Install OS-specific and locale-specific components correctly.
  • Avoid writing shared binaries into system directories unless performing an approved system-component update.
  • Do not overwrite newer components with older ones.
  • If files are in use, schedule copy on reboot to avoid mixed old/new states.
  • Register components correctly when registration is required.
  • Keep recoverable backups of overwritten components when feasible.
  • Distribute a controlled installer package rather than loose raw component files.
  • Test setup on clean systems and on realistic machines with existing software.

Best practices checklist

  • Define one organization-wide version format and document ownership of each field.
  • Use a monotonic build counter for released builds.
  • Stamp every artifact and publish version metadata with each pipeline run.
  • Make installer overwrite logic explicitly version-aware.
  • Test upgrade and rollback paths as first-class release criteria.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

SCM, Build, and Release Engineer Jobs: Roles, Skills, and Search Workflow

This revised guide turns a legacy jobs-portal post into a practical reference for SCM, build, and release engineering careers. Learn role differences, a focused application workflow, and reusable search query templates.

Read More

Build and Release Engineer Interview Guide: Questions, Answer Frameworks, and Tool Comparisons

A practical, updated interview guide for Build, Release, and Configuration Engineering roles. Use it to prepare better answers or run more consistent technical interviews.

Read More

Software Configuration and Release Management (SCRM): Best Practices for Reliable Releases

A practical, DevOps-focused guide to Software Configuration and Release Management that turns classic release governance into an executable workflow. Learn how to structure release types, package artifacts, enforce traceability, and deploy with safer rollback controls.

Read More

SCM Interview Guide for DevOps Roles: Answer Frameworks, Tool Comparisons, and Practical Commands

A structured SCM interview preparation guide for build, release, and DevOps engineers. Includes high-value answer points, workflow visualization, comparisons, and realistic command examples.

Read More

scmGalaxy Overview: SCM Community Mission, Training Model, and Tooling Focus

This revised profile explains scmGalaxy’s original community mission, training approach, and toolchain focus across SCM, build, release, and code quality practices. It also organizes the legacy details into a practical reference for teams evaluating similar training programs.

Read More

scmGalaxy – A SCM Build and Release Community

scmGalaxy is a community initiative based on Software configuration management that helps community members to optimize their software development process, Software Development Life Cycle optimization, Agile Methodologies…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Puja kushwaha
Puja kushwaha
1 month ago

A clear versioning strategy helps teams track changes and understand how each release was created. It is useful to version source code, configuration files, and build scripts together whenever possible. Consistent commit messages and release tags also make it easier to trace issues back to specific changes. Teams should define who can approve important updates and how they can restore a known working version. These simple rules improve teamwork and make software releases more reliable.

1
0
Would love your thoughts, please comment.x
()
x