Skip to content

Should we add System.Threading.AccessControl to the base shared framework #115961

Closed
dotnet/dotnet
#1204

Description

@ericstj

It's been part of WindowsDesktop since the beginning. With #110416 it was added to AspNetCore.

Most other *AccessControl libraries in the base shared frammework:
System.IO.FileSystem.AccessControl
System.IO.Pipes.AccessControl
System.Security.AccessControl

Seems like we should just add it. Thoughts @bartonjs @JeremyKuhne?

Activity

  1. added
    untriaged
    on May 24, 2025
  2. added
    needs-area-label
    on May 24, 2025
  3. added and removed
    needs-area-label
    on May 25, 2025
  4. dotnet-policy-service commented on May 25, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
    See info in area-owners.md if you want to be subscribed.

  5. JeremyKuhne commented on May 27, 2025

    @JeremyKuhne
    Member

    @ericstj Seems like a sensible simplification.

  6. ericstj commented on May 28, 2025

    @ericstj
    MemberAuthor

    @ViktorHofer - I started looking at this and was thinking the following.

    1. Add the library to the base shared framework. Remove from aspnetcore and windows desktop.
    2. Remove package references to it when targeting .NET 10.0.
    3. Don't yet remove the package, since we're still building other packages which will depend on a supported implementation for older frameworks (net8.0, net9.0).
    4. First thing in .NET 11 stop producing the package.

    Does this sound right? I don't think we can remove the package now and reference the 9.0 version since that might go out of support before other frameworks and it carries an implementation for net8 and net9.

  7. added this to the 10.0.0 milestone on May 28, 2025
  8. removed
    untriaged
    on May 28, 2025
  9. self-assigned this
    on May 28, 2025
  10. ViktorHofer commented on May 28, 2025

    @ViktorHofer
    Member

    I'm supportive of this change. It will reduce necessary package downloads when using the base shared framework and depending on the library's API set. It will also simplify our own infrastructure (it's one of those packages that use a TPM with the PNSE infrastructure that hinders switching to compiler generated XML).

    I started looking at this and was thinking the following.

    Sounds right to me. Note that the PackageOverrides.txt data is still not auto-generated so you probably want to add that to the above list. Let's remove the package with .NET 11 then 👍

  11. bartonjs commented on Jun 2, 2025

    @bartonjs
    Member

    Moving them into the core shared runtime seems fine. When .NET EvenCorer happens in another 5-10 years maybe we'll undo this layering change and just accept the PNSEs on non-Windows 😄

  12. changed the title [-]Should we add System.ThreadingAccessControl to the base shared framework[/-] [+]Should we add System.Threading.AccessControl to the base shared framework[/+] on Jun 17, 2025
  13. ericstj commented on Jun 17, 2025

    @ericstj
    MemberAuthor

    We already accept PNSEs, you mean removing all the extensions and putting back the API on the original types?

  14. locked and limited conversation to collaborators on Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions