WCF Data Services, now with more releases!
Like other teams at Microsoft, WCF Data Services has been working toward a goal of more frequent releases. We released 5.0 on April 9 and we pre-released WCF Data Services 5.0.1-rc* on April 20 (we’ll release the final version of
5.0.1 very soon). The rapid release was possible because of three changes we’re making. First up, we’re…
Adopting semantic versioning
Semantic versioning is a growing movement that proposes a solution to confusing version numbers. Let’s see how semantic versioning applies to the pre-release:
- The first digit is the major version. Semantic versioning states that the major version should be bumped only when there are breaking changes in a public API.
- The second digit is the minor version. Semantic versioning asserts that the minor version should be bumped when new functionality is introduced to the public API.
- The third digit is the patch version. Semantic versioning says that the patch version should be bumped for bug fixes that do not affect the public API.
- The hypenated string is the pre-release version. Semantic versioning claims that the pre-release version should be appended to anything that is not a release.
5.0.1 only contains bug fixes, we bumped only the third digit of the version number. The prerelease that went out on April 20 was suffixed with
-rc to indicate that the bits are not yet release quality.
* Note: When we initially pushed out the prerelease, we thought we would need the minor version increment. This turned out not to be the case, so we fixed the version number to be the correct value according to semantic versioning. We hid the
5.1.0-rc prerelease today, replaced it with
5.0.1-rc and will release the final bits as
5.0.1. If you have installed
5.1.0-rc, you’ll need to uninstall that package before you can install
Moving to semantic versioning facilitates our decision to…
Distribute new releases via NuGet
NuGet is a fantastic binary distribution system for a number of reasons. NuGet enables us to release more frequently without causing additional confusion – the version history on the package page clearly displays the versions that have been released:
NuGet also makes it easy to take a dependency on a particular version of an assembly with commands like
Install-Package Microsoft.Data.Services.Client –Version 5.0.1. Furthermore, NuGet makes it very easy to recognize prereleases and even provides a special version of the command line that support prerelease versions:
NuGet also makes it easier for us to achieve a third goal…
Changing to a “bin deploy” model
If you’re not familiar with the term, a bin deploy model is one in which you simply copy the contents of the bin directory to the target location – there are no MSIs involved, no GAC – just DLLs and your preferred file transfer mechanism.
There are many reasons to move to a bin deploy model. Two of the more obvious reasons are:
- A bin deploy model simplifies deployment and increases the number of potential deployment targets. You don’t need your Web server to run a particular MSI that puts the appropriate assemblies into the GAC. This opens up a whole host of scenarios, including deploying OData services to hosting providers that won’t run the WCF Data Services MSI. It also increases confidence that when an application is deployed, it has all of its dependencies readily available.
A bin deploy model allows trust levels that are commonly leveraged by hosting providers.
We’ll be writing more about NuGet and bin deploy in the near future, but for now we would love to hear your…
We’d love to hear what you think about 5.0.0, our more frequent releases, and our changes to distribution/deployment. Feel free to leave a comment below!