Skip to content

Consider adding Package Validation to document binary compatibility #259

Closed

Description

@bartelink

https://devblogs.microsoft.com/dotnet/package-validation/#validation-against-baseline-package-version has been working well with me for Equinox (see jet/equinox#455)

TL;DR it fails the build if there's a binary incompatibility compared to the public API of an earlier version

Of course, there's a selfishness to my request/suggestion too: I have multiple public packages that depend on TaskSeq >= 0.4.0 and would need to reissue quite a few packages if there was to be a binary breaking change. What I like about how this scheme works is that there's a clear line in the fsproj that documents how far back the binary compatibility stretches for any given package.

Activity

  1. added
    enhancement
    on Mar 7, 2026
  2. github-actions commented on Mar 8, 2026

    @github-actions
    Contributor

    🤖 This is an automated response from Repo Assist.

    A draft PR has been opened that implements the core of this request: [Repo Assist] eng: enable package validation (#259).

    It adds (EnablePackageValidation)true(/EnablePackageValidation) to the library fsproj. This activates the .NET SDK's package structure validation on every build.

    The PR also includes a commented-out PackageValidationBaselineVersion property — uncomment it and set it to (e.g.) 0.5.0 to get the binary-compatibility check described in the issue, which will fail the build if any public API is removed or signature-changed relative to that published version.

    Generated by Repo Assist · ◷

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@5029c9574c7bd2baa70aab6c8de9ea09edf11803
    
  3. added a commit that references this issue on Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions