CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 11:04:23 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"0715bf71d10ddea1aa28e7e1bd72ea17"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=xosNqbVh%2F5Y7p6op%2B8IFrzxS%2F15gI%2FCyiMywmYgSdMgpDm2%2FjUKeidVQtfLEvSFvKPxsaQeXqebWlhITAGDLtqVGe3Eyrj7eC%2F3gf2jPGLwpotexUzx6NwTzkkKHQU%2FuGf8zDLLwhXiuGCuHGaZec%2BmmxqNaMgp%2B%2FIMvzW06iONLrQxAv6aPZSdA8V03g2LCaq9l4YUbMpcVExbAeP0NE3%2FaSUVG50HkXSnlLcF0Q3soBAdC%2BSc%2FmvMxmXWRRljovfwFnJdTjfbXKq41pZuYjg%3D%3D--o%2B6Uy2Ah0rTSqMW8--bWBC00nzjTGID%2FTtyrroTg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.405831385.1753959863; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 11:04:23 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 11:04:23 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A6E6:3FE9C3:84C08E:9DA8E2:688B4DB7
Release procedure · nsubstitute/NSubstitute Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 272
Release procedure
David Tchepak edited this page Nov 30, 2024
·
35 revisions
- Move unreleased changes in CHANGELOG to new version heading.
- Ensure BreakingChanges.txt up to date and move unreleased breaking changes to new version heading.
- Ensure Acknowledgements up to date.
- Make final commit for release. (need to update
<Version>x.y.z</Version>
inside NSubstitute.csproj) - Run "Release packages" build
- Create GitHub release and push tag for final commit as "vx.y.z" (z changes on patches, y on new features or minor changes to behaviour, x for breaking API changes). The tag message should be "NSubstitute x.y.z".
- Can get GitHub release to generate initial release notes, then tweak as required. See previous releases for examples.
- Be sure to credit people who contributed to the release!
- Grab release from release build action and push release to nuget:
dotnet nuget push "bin/release/NSubstitute/NSubstitute.x.y.z.nupkg" --source=https://www.nuget.org/api/v2/package
wherex.y.z
- package version. - Publish website (built to output dir,
bin/Release/nsubstitute.github.com
).
- Run "Release documentation" build
- Publish website (built to output dir, bin/Release/nsubstitute.github.com).
- Build release package for internal testing before release to nuget:
- Run "Release packages" build and get current packages for current version from main
- Build beta, alpha, etc. release packages:
- Use normal release package process but with pre-release version. For example:
<Version>6.0.0-beta1</Version>
- Use normal release package process but with pre-release version. For example:
Previous procedures (prior to 6.0)
- Move unreleased changes in CHANGELOG to new version heading.
- Ensure BreakingChanges.txt up to date and move unreleased breaking changes to new version heading.
- Ensure Acknowledgements up to date.
- Make final commit for release.
- Create GitHub release and push tag for final commit as "vx.y.z" (z changes on patches, y on new features or minor changes to behaviour, x for breaking API changes). The tag message should be "NSubstitute x.y.z".
- Can get GitHub release to generate initial release notes, then tweak as required. See previous releases for examples.
- Be sure to credit people who contributed to the release!
- Grab release from release build action and push release to nuget:
dotnet nuget push "bin/release/NSubstitute/NSubstitute.x.y.z.nupkg" --source=https://www.nuget.org/api/v2/package
wherex.y.z
- package version. - Publish website (built to output dir,
bin/Release/nsubstitute.github.com
).
Previous procedures (prior to 5.3)
- Move unreleased changes in CHANGELOG to new version heading.
- Ensure BreakingChanges.txt up to date and move unreleased breaking changes to new version heading.
- Ensure Acknowledgements up to date.
- Make final commit and tag this commit as "vx.y.z" (z changes on patches, y on new features or minor changes to behaviour, x for breaking API changes). The tag message should be "NSubstitute x.y.z".
- Build using:
CONFIGURATION=Release ./build.sh --target All
from the./build
directory. This will build to output/release.- This is for Git bash shell on Windows; otherwise try
./build/build.bat
- Needs Ruby and
bundle install
first. See Prerequisites for Ruby install info. This is just for the documentation generation. If doc generation fails it could be because gems have changed; trybundle install
again. - Alternatively can grab the build from AppVeyor after pushing.
- This is for Git bash shell on Windows; otherwise try
- Test nuget package on a project using a local repository.
- Push final commit and tags to main repo:
git push upstream && git push upstream --tags
(whereupstream
is main repo remote) - Push release to nuget:
dotnet nuget push "bin/release/NSubstitute/NSubstitute.x.y.z.nupkg" --source=https://www.nuget.org/api/v2/package
wherex.y.z
- package version. - Publish website (built to output dir,
bin/Release/nsubstitute.github.com
). - Announce (mailing list, twitter, and unleash carrier pigeons to spread the joyous news). Be sure to credit people who contributed to the release!
- ...
- Profit!
- Move unreleased changes in CHANGELOG to new version heading.
- Ensure BreakingChanges.txt up to date and move unreleased breaking changes to new version heading.
- Ensure Acknowledgements up to date.
- Make final commit and tag this commit as "vx.y.z" (z changes on patches, y on new features or minor changes to behaviour, x for breaking API changes). The tag message should be "NSubstitute x.y.z".
- Build using:
./build.sh All configuration=Release
from the./build
directory. This will build to output/release.- This is for Git bash shell on Windows; otherwise try
./build/build.bat
- Needs Ruby and
bundle install
first. See Prerequisites for Ruby install info. This is just for the documentation generation. If doc generation fails it could be because gems have changed; trybundle install
again.
- This is for Git bash shell on Windows; otherwise try
- Test nuget package on a project using a local repository.
- Push final commit and tags to main repo.
- Push release to nuget:
build\NuGet.exe push "bin/release/NSubstitute/NSubstitute.*.nupkg" -Source https://www.nuget.org/api/v2/package
. (Make sure nuget.exe is up-to-date first!nuget update -self
) - Publish website (built to output dir,
bin/Release/nsubstitute.github.com
). - Announce (mailing list, twitter, and unleash carrier pigeons to spread the joyous news). Be sure to credit people who contributed to the release!
- ...
- Profit!
- Move unreleased changes in CHANGELOG to new version heading.
- Ensure BreakingChanges.txt up to date and move unreleased breaking changes to new version heading.
- Ensure Acknowledgements up to date.
- Make final commit and tag this commit as "vx.y.z" (z changes on patches, y on new features or minor changes to behaviour, x for breaking API changes). The tag message should be "NSubstitute x.y.z". For the rare occasions when a pre-release package is required, can use
(alpha|beta|rc)x.y.z
. - Build using:
./build.sh All mode=Release targets=ALL
. This will build to output/release. (This is for Git bash shell on Windows; otherwise trybuild.bat
) - Test nuget package on a project using a local repository.
- Push final commit and tags to main repo.
- Push release to nuget:
ThirdParty\NuGet\NuGet.exe push (path to .nupkg) -Source https://www.nuget.org/api/v2/package
. (Make sure nuget.exe is up-to-date first!nuget update -self
) - Copy release ZIP from output to
Source/Docs/Downloads
- Update source/docs/index.html to point to new ZIP file to download (NSubstitute-x.x.0.0.zip)
- Commit website changes and push to repo
- Re-build and publish website (built to output dir).
- Announce (mailing list, twitter, and unleash carrier pigeons to spread the joyous news). Be sure to credit people who contributed to the release!
- ...
- Profit!
Note: I had trouble with jekyll v0.11.2 on Windows & Ruby193 (maruku would give undefined method errors). I had to gem install jekyll --version '0.11.0'
, and then uninstall version 0.11.2 of jekyll using gem uninstall jekyll
to get it to work. I also had to gem install liquid --version '2.2.2'
and uninstall the later version of that, as per this StackOverflow answer.
You can’t perform that action at this time.