Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Design and implement a dependency versioning strategy for code assets and packages, including semantic versioning (SemVer) and date-based (CalVer)

A worked example

Multiple answers

A team publishes a .NET class library as a NuGet package to an Azure Artifacts feed. The team versions the package with Semantic Versioning 2.0 and is planning the next release.

Which two of the following changes require an increment of the major version number? Each correct answer presents a complete solution.

Choose 2 answers.
Why

SemVer uses the major number to signal changes that break backward compatibility. Removing a public API and changing a signature so that callers fail to compile are both breaking changes, so each one needs a new major version. A backward-compatible new method or a deprecation that keeps the method working is a minor increment. A backward-compatible security fix is a patch increment.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free