Skip to content

Enroll libraries in unsafe-v2 #136664

Open
Open

Description

@EgorBo

Enrolled 153 / 270 (57%)

Each checkbox covers all projects under that library directory, including source, reference assemblies, generators, tests, and test assets. Shared folders are excluded.
NOTE: long term I guess all C# code should be migrated to the new rules including tests, not just libraries.

How to enroll a library

A prompt for reading all the relevant documentation and running the driver script:

Read https://gist.githubusercontent.com/EgorBo/271abeeac2bfb5a34013e4562507062e/raw/unsafe-v2-migration-agent-prompt.md in full
and follow it for **System.IO.Compression** and its tests. Run the driver once per project.

(I also tell it where to find a prebuilt dotnet/runtime in WSL so it can handle Linux targets there.)

Activity

  1. added
    untriaged
    on Oct 29, 2026
  2. dotnet-policy-service commented on Oct 29, 2026

    @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.

  3. added and removed
    untriaged
    on Oct 29, 2026
  4. added this to the 12.0.0 milestone on Oct 29, 2026
  5. self-assigned this
    on Oct 29, 2026
  6. EgorBo commented on Oct 29, 2026

    @EgorBo
    MemberAuthor
  7. EgorBo commented on Oct 30, 2026

    @EgorBo
    MemberAuthor

    NOTE: Roslyn crashes with SO when CoreLib is being enrolled into unsafe-v2. It is either dotnet/roslyn#86208 or dotnet/roslyn#85762

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