This document covers how to do an official release of SlnGen.
SlnGen uses semantic versioning in the format major.minor.build to convey to users the kind of changes that were deployed:
- Major - The release contains breaking changes from the last release
- Minor - The release contains new features or functionality that did not exist before
- Build - The release contains bug fixes or updates to dependencies that have no affect on the behavior of the tool
For each release, decide on the impact of the changes. If it only contains bug fixes or dependency updates, you do not have to update anything. If it contains new features or breaking changes, you should update the version in version.json accordingly before creating a release.
Releases are tagged with the same version as what is built. However, you must determine ahead of time which version will be used. To do this, build the repository from the main branch and note which version was used or look at the most recent Official Build.
D:\SlnGen>msbuild
MSBuild version 17.9.0-preview-23557-02+5d1509792 for .NET Framework
...
Successfully created package 'D:\SlnGen\src\Microsoft.VisualStudio.SlnGen\bin\Debug\Microsoft.VisualStudio.SlnGen.11.1.17.nupkg'.
...
In this example, the version for the release is 11.1.17.
Create a new release at https://github.com/microsoft/slngen/releases. The tag must be in the format of vMAJOR.MINOR.BUILD (The tag must start with a lead v). Using the above example, the tag would be v11.1.17. Release notes
should contain the important commits that are relevant to that release and can be auto-generated by GitHub. You can leave out commits that are not customer facing.
Creating the release tag triggers the Official Build. For tags starting with v, the build pushes the Microsoft.VisualStudio.SlnGen* packages to nuget.org once it succeeds. Before creating the tag, make sure its version matches the package version the build produces.
Packages published to nuget.org use the Azure DevOps Service Connection microsoft.slngen package push. The API key expires and must be regenerated periodically. If a push fails with an authentication error, update the service connection with a new API key and re-run the build.