Skip to content

Commit 684698c

Browse files
committed
Add compatibility checks
Signed-off-by: Jon Skeet <[email protected]>
1 parent 6385133 commit 684698c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ jobs:
3232
run: |
3333
dotnet build
3434
dotnet test
35+
# Pack production packages to validate compatibility
36+
dotnet pack -p:ContinuousIntegrationBuild=true

RELEASING.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ The normal steps are expected to be:
2424
- The maintainer who creates and merges this change is also (by default) responsible for manually creating
2525
the GitHub release and (automatically) a corresponding tag. See below for the format of these.
2626
- NuGet packages are automatically created and pushed when the release is created.
27+
- After a minor or major release, the `PackageValidationBaselineVersion` is updated
28+
to the new version number as the baseline for a future release to be compatible with.
2729

2830
## Stable package versioning
2931

src/Directory.Build.props

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<PropertyGroup>
33
<!--
44
- We use the same version number for all stable
5-
- packages. See PROCESSES.md for details.
5+
- packages. See RELEASING.md for details.
66
-->
77
<Version>2.7.1</Version>
8+
<PackageValidationBaselineVersion>2.7.0</PackageValidationBaselineVersion>
89

910
<!-- Make the repository root available for other properties -->
1011
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>
@@ -14,7 +15,9 @@
1415
<SignAssembly>True</SignAssembly>
1516
<Deterministic>True</Deterministic>
1617
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
17-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
18+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
19+
<EnablePackageValidation>true</EnablePackageValidation>
20+
<ApiCompatEnableRuleCannotChangeParameterName>true</ApiCompatEnableRuleCannotChangeParameterName>
1821

1922
<!-- Package properties -->
2023
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

0 commit comments

Comments
 (0)