Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dotnet/SqlClient
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.1.0
Choose a base ref
...
head repository: dotnet/SqlClient
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.1.1
Choose a head ref
  • 6 commits
  • 87 files changed
  • 7 contributors

Commits on Sep 18, 2026

  1. Configuration menu
    Copy the full SHA
    857c759 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2026

  1. [7.1.1 Cherry-pick] Fix precision of rescaled zero decimal parameters (…

    …#4732)
    
    * Cherry-pick of #4721 requires manual resolution
    
    To resolve, run:  git cherry-pick 20ada1d
    
    * Backport zero decimal parameter precision fix to 7.1.1
    
    Backport #4721 from a413549. The reported merge commit 20ada1d is empty.
    
    Co-authored-by: Copilot App <[email protected]>
    
    ---------
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: Saurabh Singh <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    3 people authored Sep 23, 2026
    Configuration menu
    Copy the full SHA
    151fc05 View commit details
    Browse the repository at this point in the history
  2. Preserve in-flight opens when clearing connection pools (#4718) (#4740)

    * Fix OpenAsync retry after pool clear
    
    Route pending async opens on a cleared wait-handle pool back through the connection factory so they can complete from the replacement pool instead of surfacing a misleading pool timeout.
    
    Add a regression test that parks an async pending open, clears the pool group, and verifies completion from a replacement pool.
    
    
    
    * Preserve in-flight opens when clearing wait-handle pools
    
    Remove shutdown interruption and retry routing. Let admitted requests finish on the retired pool and dispose their connections on return. Preserve error expiry for remaining waiters.
    
    Cover sync and async clearing, cancellation, timeouts, and error expiry. Add a SQL Server regression workload for #4714.
    
    
    
    * Make pool-clear regression coverage deterministic
    
    Remove the concurrent stress workload and elapsed-time assertions. Gate physical creation and assert exact request ordering and creation counts around pool shutdown.
    
    
    
    * Remove pool-clearing documentation changes
    
    
    
    * Leave retired pool clearing to the factory
    
    
    
    * Clarify gated pool shutdown test scenario
    
    
    
    * Separate pool-clear scenario from test plumbing
    
    
    
    * Organize pool regression tests as arrange act assert
    
    
    
    * Explain pool regression test interleavings inline
    
    
    
    * Trim blocking-period test commentary
    
    
    
    * Explain regression conditions and assertion evidence
    
    
    
    * Clarify shutdown test walkthrough
    
    
    
    * Match pool-clear comments to shutdown walkthrough
    
    
    
    ---------
    
    Co-authored-by: Malcolm Daigle <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    3 people authored Sep 23, 2026
    Configuration menu
    Copy the full SHA
    cfc4fd3 View commit details
    Browse the repository at this point in the history
  3. Fix token expiry eviction in connection pool V2 (#4734) (#4739)

    Validate access token expiry before general checkout, preserving return and transaction-affinity behavior. Cover callback cache refresh and physical reuse across both pool implementations and sync/async opens.
    
    Co-authored-by: Cheena Malhotra <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    3 people authored Sep 23, 2026
    Configuration menu
    Copy the full SHA
    e311b90 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2026

  1. [7.1] Add XML documentation validation to OneBranch builds and fix do…

    …cs issues (#4752)
    
    * Add XML documentation validation to OneBranch builds
    
    Adds a preflight for the XML documentation cross-references that feed
    dotnet/sqlclient-api-docs, so malformed documentation IDs fail our own build
    rather than surfacing as xref-not-found warnings on an API Docs pull request.
    
    This commit exposes the problems; it does not fix them. The findings it
    reports are left in place so they can be reviewed and fixed separately.
    
    Validation
    ----------
    
    eng/pipelines/onebranch/scripts/validate-xml-docs.ps1 reports, as errors:
    documentation-ID syntax defects (C# aliases in signatures, empty parentheses
    on parameterless members, embedded whitespace, array T: UIDs), unknown
    namespace roots, cross-references the compiler could not bind, malformed
    files, stale allowlist entries, documentation that should exist but does not,
    and lib/ versus ref/ documentation trimming defects in a package. Resolution
    findings that a target-framework-conditional or cross-assembly member can
    legitimately trigger are warnings.
    
    No network access is required: these defects are decidable from
    documentation-ID syntax and the local member index, so the published Learn
    xref map is not needed. It stays available via -ExternalXrefMapPath.
    
    It runs at three points: snippet sources before the build, generated
    documentation after it, and the assembled packages during package validation.
    Only the last shows what a consumer actually receives.
    
    Expectations come from the project
    ----------------------------------
    
    GenerateDocumentationFile in the csproj is the single declaration, so nothing
    is restated in the pipeline and the two cannot drift. A project that generates
    documentation must produce it; one that does not is reported as information
    naming the reason, and documentation appearing there is reported as a warning.
    Snippet validation follows the same principle: only the snippets a project's
    sources reference are validated. Project files are parsed as XML rather than
    searched as text, because a comment naming the property would otherwise read
    as setting it.
    
    Gating
    ------
    
    One failOnValidationError parameter governs the localization, XML
    documentation, and package validation steps. When false, findings are reported
    as warnings and the build continues; malformed inputs and a validator that
    fails to run still fail the step. The official pipeline sets it true and the
    non-official pipeline exposes it at queue time, with no intermediate template
    declaring a default. Steps reporting findings mark themselves
    SucceededWithIssues, because task.logissue alone leaves the task result
    untouched and a step carrying warnings would otherwise render as a clean
    success.
    
    breakOnSdlError is renamed failOnSdlError to match.
    
    Microsoft.SqlServer.Server
    --------------------------
    
    Enables documentation generation. Its public types already carry complete
    documentation comments, producing 63 documented members with no warnings, but
    they were compiled away so consumers got no IntelliSense. Set unconditionally:
    net46 is type-forwards only and gets an essentially empty file, but a
    TargetFramework condition would leave the project without a single
    unambiguous answer about whether it produces documentation.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 752bc4a)
    
    * Fix the XML documentation defects the new validation reports
    
    Companion to the commit that added the validation. That one deliberately left
    its findings in place; this one fixes them.
    
    Documentation IDs
    -----------------
    
    Corrects every cross-reference the snippet and generated-documentation gates
    reported: array T: UIDs that name no documentation page, a parameterless
    method written with empty parentheses, C# aliases where a documentation ID
    must name CLR types, whitespace inside a documentation ID, and 29
    cross-references carrying the wrong kind prefix.
    
    Packaging
    ---------
    
    lib/<tfm> is the source the API docs pipeline consumes and must carry the full
    text; ref/<tfm> is trimmed because remarks and examples render badly in Visual
    Studio tooltips. lib/net8.0 and lib/net9.0 had been taking the trimmed
    reference copy since 07a9280, so the published documentation lost every
    remark and example for those frameworks. Both now take the implementation
    artifact.
    
    netstandard2.0 has no implementation build to take full documentation from, so
    the reference project now keeps an untrimmed copy of its documentation beside
    the trimmed one, and lib/netstandard2.0 uses that. Every lib target therefore
    carries the full text without needing an exception.
    
    Also records in the nuspec why net462 packs the real implementation into both
    lib/ and runtimes/, which is otherwise easy to mistake for an accident.
    
    Build correctness
    -----------------
    
    TrimDocsForIntelliSense ran after the output copy, so a first build published
    untrimmed reference documentation and only a second build published the
    trimmed file. It now runs between CoreCompile and CopyFilesToOutputDirectory,
    so one build is enough.
    
    Documentation comments take their text from doc/snippets through <include>,
    which the compiler reads but MSBuild did not treat as an input. Editing a
    snippet left the generated documentation stale until the project was rebuilt
    from scratch, which made the validation above appear to ignore a fix. The
    snippets are now declared as compile inputs.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 01cbd08)
    
    * Split unresolved local references by public API surface
    
    The generated-documentation and packaged-documentation gates reported 187
    missing-local-uid warnings, none of which were actionable. They marked three
    steps as succeeded-with-issues and buried a real defect.
    
    Two populations were mixed together. A reference to an internal type that
    carries no documentation of its own reaches no reader, because internal members
    are never published. A reference from a public member does reach a reader, and
    becomes an unresolved reference on the published page.
    
    A reference assembly contains the public API and nothing else, so the
    documentation in a package's ref/ folder is exactly that surface. Severity now
    follows the member holding the reference: from a public member it is an error,
    and otherwise it is informational. Where no reference documentation is
    available the surface is unknown and nothing is escalated, which is the case
    for the per-assembly gates.
    
    On the net8.0 package this separates 19 findings from 60.
    
    The separation exposed a namespace written with a type prefix in
    SqlDataReader.xml, which would have produced an unresolved reference on a
    published page. Corrected to N:.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit ed8aed6)
    
    * Keep informational findings out of the step result
    
    Demoting missing-local-uid to informational changed its severity but not how
    it was reported: every non-gating finding was written as a warning, and any
    finding at all marked the step as succeeded-with-issues. A step reporting
    nothing but informational findings therefore still drew attention to itself.
    
    task.logissue has no informational level, so informational findings are now
    written as plain output and only warnings and errors mark the step.
    
    Also corrects a cref naming a type that does not exist. The attribute is
    Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute, which eight other
    snippets already reference correctly; the ninth named a namespace that
    contains no such type. It is referenced from the public SqlMetaData
    constructors, so the published page would have carried an unresolved
    reference. This was the only finding the packaged-documentation gate reported
    against the public API surface.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 4761b5a)
    
    * Address PR review feedback
    
    Resolves the unresolved review threads on #4730, and the three items the
    reviewer recorded in the review body rather than as threads.
    
    Validator
    ---------
    
    The extraction root is cleared wholesale before packages are expanded. Removing
    only the destinations of the current packages left expansions from an earlier
    invocation in place, and the whole root is scanned afterwards, so stale XML was
    validated and its members entered the local UID index.
    
    Alias detection recurses into generic arguments. The check reduced a parameter
    to its core type, which discards the arguments, so an alias nested inside one
    such as List{string} went unreported.
    
    The local UID lookup compares the normalized identifier. The whitespace rule
    rewrites the cref body, but the lookup still used the original, so a cref whose
    only defect was whitespace also reported a prefix mismatch it did not have.
    
    Package validation no longer propagates PackageValidator's exit code. The
    script decides what that code means and reports accordingly, but the task
    re-propagated the stale value and failed report-only runs.
    
    Documentation build
    -------------------
    
    The trim no longer rewrites its own input. An isolated analyzer build redirects
    bin while deliberately sharing obj, so rewriting the intermediate file left the
    shared copy trimmed, and a later real build could publish trimmed text as the
    full text or omit the untrimmed copy entirely. The compiler's output now stays
    authoritative, the trimmed result is a separate intermediate that the output
    copy is pointed at, and the untrimmed copy is keyed on the output path.
    
    Verified across a clean build, two incremental rebuilds, and a real build
    following an isolated one, for every target framework.
    
    Documentation
    -------------
    
    Corrects the consumer table in documentation.instructions.md, which had lib and
    ref the wrong way round: lib carries the full text for the API docs pipeline
    and ref is trimmed for IntelliSense.
    
    Corrects three crefs: an Add overload that does not exist, DataAccessKind where
    the documented property takes SystemDataAccessKind, and prose calling the
    SqlClientFactory.Instance field a property.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 5ccb6cd)
    
    * Reject angle-bracket generics and multidimensional array type references
    
    Two gaps in the documentation-ID grammar, both reported in review.
    
    Angle brackets were never rejected. A documentation ID writes generic arguments
    in braces, so a cref such as T:System.Collections.Generic.List<System.String>
    is malformed, but it carries an allowed namespace root and resolves against no
    local index in source mode, so it passed the preflight and would still produce
    the unresolved published reference this validation exists to prevent. Angle
    brackets are now rejected wherever they appear, with the braced form suggested.
    
    The constructed-type rule recognized only the [] suffix. The multidimensional
    forms [,] and the documentation-ID spelling [0:,0:] denote constructed types
    just as [] does, so a T: reference to one passed. Any bracketed array suffix is
    now matched. The same suffixes remain legal as parameter types, where they name
    a real signature rather than a type page.
    
    Adds regression cases for both, including controls for the valid braced generic
    and for a multidimensional array used as a parameter type. Reverting either
    rule fails three of them.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 22c2831)
    
    * Keep malformed XML fatal in report-only mode
    
    Report-only downgrades findings so a run can surface everything at once, but it
    was also downgrading malformed-xml. A file that could not be parsed was never
    examined, so none of its cross-references were checked and suppressing it
    reported an all-clear for content nobody read. A malformed packaged XML file
    could therefore pass a non-official run.
    
    This also contradicted the stated contract, which the pipeline guidance and the
    sibling validation scripts already follow: report-only covers findings, while
    unreadable or missing input fails outright because it produced no result to
    downgrade.
    
    Unreadable files are now reported and fail in either mode, with a message
    naming how many could not be read. The report is still written first, so the
    findings remain available. Ordinary findings continue to be downgraded.
    
    Adds a case for the contract and one confirming report-only still works for
    readable files, and updates the two existing cases that asserted the old
    message.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 8b9d832)
    
    * Apply the public API classification to wrong-kind prefixes, and track sibling doc directories
    
    Two findings, both in code that predates the previous round.
    
    A wrong-kind prefix was always a warning, even where the reference documentation
    proves the containing member is public. Every pipeline invocation gates on
    error, so a new M: reference to a public property would stay unresolved on the
    published page yet pass validation. It is classified the same way as an
    unresolvable reference now, and for the same reason: the wrong prefix produces
    a UID that matches nothing, so from a public member it leaves an unresolved
    reference. Non-public and unknown-surface cases keep their lower severity.
    
    The classification lived inline in one of the two branches that report an
    unresolvable reference, which is how the branches came to disagree. It is now a
    single function both call.
    
    The compile inputs covered only the repository-level doc/snippets tree. The
    Abstractions and Azure projects include documentation from a doc directory
    beside their own src directory, so editing one of those files left CoreCompile
    up to date and published stale documentation. Both locations are now declared.
    
    Verified on Abstractions with a control: without the addition an edit to its
    documentation is silently dropped from the build output, and with it the edit
    is picked up. Escalating wrong-kind prefixes introduces no new errors against
    the current packages, the earlier prefix corrections having already cleared the
    public ones.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 10a6c2e)
    
    * Scope documentation compile inputs and fix a Format cref
    
    The CustomAdditionalCompileInputs wildcards were declared in src/Directory.Build.props,
    which every project under src/ inherits.  That gave all 31 projects, 23 of them test
    projects that contain no <include> references, a dependency on the whole doc/snippets
    tree, so touching any snippet invalidated CoreCompile solution-wide.
    
    Move the item group to src/Directory.Build.targets, imported after the project body has
    run, and guard it with an IncludesDocumentationSnippets property that the five projects
    actually using <include> set for themselves.  Those five continue to rebuild when a
    snippet changes; the other 26 no longer see the inputs at all.
    
    Also correct a cref in SqlUserDefinedTypeAttribute.xml.  The sentence lists the
    attribute's properties, alongside MaxByteSize which is already written as P:, so Format
    there is the property rather than the enum type that shares its name.  The other
    references to the enum in that file and its siblings are genuinely the type and are
    left alone.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit e7a9f5a)
    
    * Detect nested aliases, invalidate on tool change, correct severity docs
    
    Three fixes from review.
    
    The alias check for type crefs compared only the outer type name, which a generic
    argument never reaches: T:List{string} passed because List is a perfectly ordinary
    type.  Use Get-DocIdAlias, which already recurses, so an alias nested at any depth is
    reported, and cover the form with tests.  This also catches an alias in the declaring
    type of a member cref, whose name part is examined by the same code.
    
    The documentation trimming target listed only the generated XML as an input, so editing
    TrimDocs.ps1 left the trimmed output considered up to date and kept text produced by the
    old rules until someone built clean.  Add the script to Inputs through a property, and
    spell its path with forward slashes because the same property is passed to pwsh, where a
    backslash is an escape character rather than a separator on non-Windows hosts.
    
    The failOn documentation described a severity mapping that no longer held: it omitted
    missing-documentation and the two public resolution categories from the error list, and
    called missing-local-uid a warning when it is informational.  Since the pipelines gate on
    error, that understated the default gate.  Restate it in terms of the public/non-public
    split that decides severity, and pin the whole table with a test, as nothing else tied
    the prose to the code.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 7aa2ddf)
    
    * Report a reversed parameter list instead of abandoning the run
    
    A cref whose closing parenthesis precedes its opening one, such as
    M:Microsoft.Data.SqlClient.Sample.Bad)(, satisfied the test for a ')' being present
    anywhere in the body and then asked Substring for a negative length.  The exception
    escaped, so the run ended without writing the JSON report, including under -ReportOnly
    where the report is the entire point of the mode.
    
    Compare the two positions instead of testing for the character.  LastIndexOf answers -1
    when ')' is absent, which is below every valid opening position, so one comparison
    covers both an unterminated list and a reversed one.
    
    Neither form was covered, which is how the arithmetic beside them went unnoticed; both
    are now tested, and the reversed case asserts the report exists rather than only the
    finding.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 0be0c45)
    
    * Resolve namespace crefs against the namespaces members occupy
    
    A cref naming a namespace was exempt from local resolution, because the compiler emits
    no <member> entry for a namespace and every N: cref would otherwise have been reported
    as missing.  The exemption also excused a misspelling: N:Microsoft.Data.SqlClinet
    carries an allowed namespace root, and no pipeline invocation supplies an external xref
    map, so it passed every gate and still became an unresolved reference on Learn.
    
    Derive the set of namespaces from the members that were emitted, taking every leading
    portion of each identifier, and resolve N: crefs against it.  A leading portion may also
    name a type containing a nested one, which is harmless here: the member index is
    consulted first, so a namespace prefix on a type is reported as the prefix mismatch it
    is rather than being admitted as a namespace.
    
    The unresolved message is chosen by prefix, as saying that no matching member was
    emitted explains nothing about a cref that never named a member.
    
    Verified against the emitted documentation for Microsoft.Data.SqlClient: the three real
    N: crefs still resolve and the finding count is unchanged at 70.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit cf79cfd)
    
    * Separate a missing overload from a mistyped prefix, and name the right consumer
    
    Looking an identifier up without its signature is what lets a cref written as M: for a
    property be reported as a prefix mismatch rather than a bare lookup failure.  The same
    fallback also matched a cref naming an overload that does not exist, because it shares
    its identifier, and therefore its prefix, with the overload that does: a cref for
    Run(System.String) against an emitted Run produced "uses prefix 'M:', but ... was
    emitted as 'M:'", advising a replacement of the prefix with itself and hiding that the
    build emitted no such member.  Take the fallback only when the emitted prefixes differ
    from the one written.
    
    The header and the category table also named IntelliSense as what the 7.1.0 collapse
    harmed.  IntelliSense reads the trimmed ref/ copy by design and was unaffected; lib/
    feeds the pipeline that builds the Learn pages, and those are what lost every remark and
    example.  Name that consumer, matching the finding messages and the package layout
    contract in documentation.instructions.md.  The missing-documentation message named
    IntelliSense too, though it covers an assembly shipping no XML in either folder, so it
    now speaks of documentation text generally.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 52a2ca5)
    
    * Reject unbalanced braces around generic arguments
    
    The generic-syntax rule rejected angle brackets but said nothing about braces that do
    not pair up, so T:System.Collections.Generic.List{System.String passed with no findings
    despite naming nothing.  Such a cref is read from the first brace to the last, so a
    missing delimiter quietly produces a different argument list than the text shows, or
    none at all, and the identifier reaches Learn unresolvable.
    
    Count the delimiters before the cref is taken apart, since the extraction that follows
    assumes they pair up.  A closing brace with nothing open ends the scan, as nothing later
    can balance it.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit f737219)
    
    * Validate the return type of a conversion operator
    
    Alias scanning covered the parameter list, and the name taken for the later checks
    ends at the '(', so the return type of a conversion operator was read by neither:
    M:System.Foo.op_Implicit(System.Int32)~string passed with no findings even though a
    documentation ID names CLR types throughout.  Scan the return type with the parameters,
    and describe the finding as the signature rather than the parameter list, since the
    alias may now be in either.
    
    Nothing else may follow a parameter list, so text there that is not a return marker, or
    a marker naming no type, is reported rather than dropped.  Both forms reached none of
    the surrounding checks, which read the name before the '(' and the arguments within it.
    
    Co-authored-by: Copilot <[email protected]>
    (cherry picked from commit 439575d)
    
    * Resolve references into packages that were not built this run
    
    A NuGet package carries only its own XML documentation, so a cref from the
    SqlClient package into Microsoft.SqlServer.Server resolves against the SqlServer
    package in the drop.  When SqlServer is not built there is no such package, and
    the packaged documentation gate reported 24 missing-public-uid errors for
    T:Microsoft.SqlServer.Server.SqlUserDefinedTypeAttribute -- a reference a
    consumer resolves perfectly well against the published package the build depends
    on.
    
    Build output does not have the problem, because a dependency's documentation
    file is copied next to the assembly that consumed it.  Only the packaged gate
    sees a package in isolation, which is why this surfaced there alone.
    
    Add -DependencyDocumentationPath, whose documents are indexed for resolution but
    never themselves validated: a defect in an already-published package cannot be
    fixed by the run that reports it, and the crefs it contains point back into the
    version of this repository it shipped against.  They are also kept out of the
    public API surface, so a member cannot count as public here on the strength of
    where it sits in a package this run did not produce.
    
    restore-package-documentation.ps1 collects that documentation from the exact
    version depended upon, restored through the repository's NuGet.config so it
    comes from the same governed feed as every other restore.  The version is
    required to be exact, since a range would leave undetermined which version
    answered a reference.
    
    The job supplies it only when SqlServer was not built; when it was, resolution
    against a published copy would mask a reference the build itself broke.
    
    Verified against the packages from the failing run: the gate reproduces
    29330 crefs across 13 files with 24 errors, and passes with 0 once the
    dependency documentation is supplied, every other count unchanged.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Detect enum field remarks the documentation build discards
    
    The API docs build for 7.1 reported ECMA2Yaml_Enum_NoRemarks against
    RegisteredApplication: <remarks> on an enum field is ignored, so only the
    summary is rendered.  The note explaining why sqlpackage reports its own
    identifier rather than the Data-Tier Application Framework's reached no page,
    and nothing in our own build said so.
    
    Fold that text into the field's summary, where it publishes.
    
    Add an enum-field-remarks rule so the next one is caught here rather than in
    another repository's validation run.  Nothing in a snippet or in generated
    documentation says which types are enums, so the enum declarations in source are
    read for the answer.  Their member names are read too, because a snippet
    identifies a member only by its element name and may hold more than one block
    for the same type: <SqlConnectionIPAddressPreferenceNetfx> documents the type
    for another platform, and asking whether the name is a declared member is what
    tells it apart from a field without guessing from the name.
    
    In generated documentation the rule is confined to the public API surface.  The
    implementation assembly documents its own P/Invoke enums -- Interop.Windows
    .NtDll.CreateOptions and the like -- whose remarks are discarded just the same,
    but which reach no published page for anything to be lost from.  Where no
    reference documentation identifies the surface the rule stays silent, matching
    how every other rule here treats an unknown surface.
    
    Verified against the packages from the failing run: the rule reports the one
    public field, once per target framework, and none of the internal ones.
    
    The other finding on that run, an xref-not-found for a misspelled
    'Microssoft.Data.SqlClient.SqlCommand.EnableOptimizedParameterBinding', needs no
    change here.  Our snippet was corrected by #2889 and the ingestion under review
    is removing the stale text; the shipped 7.1.0 package contains no occurrence.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Restore documentation lost to includes that matched nothing
    
    A documentation comment pulls its text in with <include>, and when the path
    matches nothing the compiler does not fail.  It copies the unresolved element
    into the output with a comment beside it and moves on, so the member ships with
    no documentation whatsoever and the only record is in a generated file nobody
    reads.  Nine public members of the reference assembly were in that state:
    
      SqlCommand.BeginExecuteXmlReader(AsyncCallback, object)
      SqlBulkCopyColumnOrderHint..ctor(string, SortOrder)
      SqlBulkCopyColumnOrderHintCollection.Add(string, SortOrder)
      SspiAuthenticationParameters..ctor and its five properties
    
    Two causes.  Fifteen include paths named a block whose second word differed in
    case from the one the snippet declares -- AsyncCallbackAndstateObject against
    AsyncCallbackAndStateObject, and the same slip in the bulk copy mapping
    constructors, SqlClientPermission and EndExecuteReader.  XPath compares
    attributes case-sensitively, so each matched nothing.  The snippets are
    consistent, so the paths were corrected to them.  Separately, the
    SspiAuthenticationParameters paths nested each member inside the type's own
    block when the two are siblings, and omitted the trailing /*.
    
    This also explains the xref-not-found the API docs build reported for
    'Microssoft.Data.SqlClient.SqlCommand.EnableOptimizedParameterBinding'.  Our
    snippet was corrected by #2889, but BeginExecuteXmlReader's include had already
    stopped matching, so the member contributed nothing for the ingestion to write
    over.  mdoc merges rather than deletes, so the pre-#2889 text stayed in the API
    docs repository, typo and all.  The two occurrences under BeginExecuteReader,
    whose includes still worked, were refreshed and corrected in the same run --
    which is why one of the three survived.  It is also why the rendered page looks
    healthy: an unresolved reference renders as plain text among neighbours that
    resolve, in the exception list of a single overload.
    
    Add an unresolved-include rule so the next one is caught in our own build.  The
    signal needs no XPath simulation: an <include> surviving into generated
    documentation is itself proof that the member lost everything.
    
    All 2712 include directives in the tree now resolve against their snippets, and
    the reference assembly builds with none left unresolved.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Address review feedback on the XML documentation validation
    
    Three findings from PR #4752 and PR #4730.
    
    The ref project's comment gave the wrong reason for requiring forward
    slashes: PowerShell escapes with a backtick, not a backslash, and
    "C:\temp\new\test" prints literally. The constraint is real but it is
    that a backslash is not a path separator on a non-Windows host.
    
    documentation-not-expected was in CategorySeverities, was emitted in two
    places and was named in the step template, but was missing from .OUTPUTS,
    so the help did not match the categories the script can produce.
    
    A package root was compared with StartsWith and no trailing separator,
    which lets one root prefix-match a sibling whose name merely extends it.
    The segment checks downstream discarded the realistic cases, so this was
    latent rather than live; bounding the comparison at a directory boundary
    makes it independent of them. The accompanying test fails without the
    guard: a package named Contoso.Widgetref has its lib/ read as reference
    documentation against root Contoso.Widget, which defines the public API
    surface and so escalates an unresolved cref from info to error.
    
    252 Pester tests pass, the snippets gate passes over 4687 crefs in 99
    files, and the reference assembly builds clean.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Fix documentation gaps found in Learn previews
    
    Add a reusable Learn preview audit procedure, detect over-broad XML include paths, and repair documentation that Open Publishing silently discarded.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Address PR #4752 review feedback
    
    Enable XML snippet source validation for the Abstractions and Azure
    package jobs, and restrict the documented CDP browser origin.
    
    Co-authored-by: Copilot <[email protected]>
    
    * Validate generated reference XML documentation
    
    Co-authored-by: Copilot <[email protected]>
    
    * Validate inline API documentation xrefs
    
    Detect bare inline xrefs to parameterized methods before Open Publishing reports them, and correct the affected SqlBulkCopy documentation links.
    
    Co-authored-by: Copilot <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot <[email protected]>
    paulmedynski and Copilot authored Sep 25, 2026
    Configuration menu
    Copy the full SHA
    f8d33ca View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2026

  1. Bump SqlClient family version to 7.1.1 (#4768)

    Co-authored-by: Malcolm Daigle <[email protected]>
    Co-authored-by: Copilot App <[email protected]>
    3 people authored Sep 28, 2026
    Configuration menu
    Copy the full SHA
    29ce2d8 View commit details
    Browse the repository at this point in the history
Loading