Skip to content

[Breaking change]: TrustedCertificatesDirectory and StartNewTlsSessionContext are not available on .NETStandard / .NETFramework #48879

Closed

Description

@ericstj

Description

The following APIs were accidentally exposed in netstandard2.0

P:System.DirectoryServices.Protocols.LdapSessionOptions.TrustedCertificatesDirectory
M:System.DirectoryServices.Protocols.LdapSessionOptions.StartNewTlsSessionContext()

These are not implemented on .NETFramework and should not have been exposed from the netstandard2.0 assembly.

The bug existed in System.DirectoryServices.Protocols nuget package version 8.0.1 and was fixed in 8.0.2.

Version

.NET 8

Previous behavior

These APIs could be used from a netstandard2.0 library.

New behavior

These APIs are unavailable when targeting netstandard2.0

Type of breaking change

  • Binary incompatible: Existing binaries might encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code might require source changes to compile successfully.
  • Behavioral change: Existing binaries might behave differently at run time.

Reason for change

The APIs did not work in all compatible frameworks.

Recommended action

If you need to use these APIs, target a .NET version that supports them.

Feature area

Core .NET libraries

Affected APIs

P:System.DirectoryServices.Protocols.LdapSessionOptions.TrustedCertificatesDirectory
M:System.DirectoryServices.Protocols.LdapSessionOptions.StartNewTlsSessionContext()


Associated WorkItem - 495674

Activity

  1. added
    breaking-change
    on Oct 2, 2025
  2. added
    🗺️ mapQUEST
    on Oct 2, 2025
  3. added
    🗺️ reQUEST
    on Oct 2, 2025
  4. removed
    🗺️ mapQUEST
    on Oct 2, 2025
  5. added
    📌 seQUESTered
    and removed
    🗺️ reQUEST
    on Oct 3, 2025
  6. added
    🗺️ mapQUEST
    on Oct 6, 2025
  7. moved this from 🔖 Ready to 🏗 In progress in dotnet/docs October 2025 sprinton Oct 6, 2025
  8. removed
    🗺️ mapQUEST
    on Oct 6, 2025
  9. added
    🗺️ mapQUEST
    on Oct 6, 2025
  10. moved this from 🏗 In progress to 🔖 Ready in dotnet/docs October 2025 sprinton Oct 6, 2025
  11. removed
    🗺️ mapQUEST
    on Oct 6, 2025
  12. moved this from 🔖 Ready to 🏗 In progress in dotnet/docs October 2025 sprinton Oct 14, 2025
  13. moved this from 🏗 In progress to 👀 In review in dotnet/docs October 2025 sprinton Oct 14, 2025
  14. added
    🗺️ mapQUEST
    on Oct 14, 2025
  15. removed
    🗺️ mapQUEST
    on Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

📌 seQUESTeredbreaking-change

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions