From 684698c09de8ab60c96c83f1d9a0bb73c19f16ed Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Fri, 22 Mar 2024 09:31:59 +0000 Subject: [PATCH] Add compatibility checks Signed-off-by: Jon Skeet --- .github/workflows/build.yml | 2 ++ RELEASING.md | 2 ++ src/Directory.Build.props | 7 +++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb64d7b..e67248d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,3 +32,5 @@ jobs: run: | dotnet build dotnet test + # Pack production packages to validate compatibility + dotnet pack -p:ContinuousIntegrationBuild=true diff --git a/RELEASING.md b/RELEASING.md index 5993b43..4ef2774 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -24,6 +24,8 @@ The normal steps are expected to be: - The maintainer who creates and merges this change is also (by default) responsible for manually creating the GitHub release and (automatically) a corresponding tag. See below for the format of these. - NuGet packages are automatically created and pushed when the release is created. +- After a minor or major release, the `PackageValidationBaselineVersion` is updated + to the new version number as the baseline for a future release to be compatible with. ## Stable package versioning diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 0f81436..64c7440 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,9 +2,10 @@ 2.7.1 + 2.7.0 $([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)')))) @@ -14,7 +15,9 @@ True True True - true + true + true + true $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb