Skip to content

Reference source for System.Security.Cryptography is generated inconsistently between platforms #66634

@vcsjones

Description

@vcsjones

Somewhat recently, it appears that the GenerateReferenceAssemblySource is creating changes that are invalid, or at least unwanted.

On macOS or Linux, do:

# Tried on 2737da5
./dotnet.sh build src/libraries/System.Security.Cryptography/src /t:GenerateReferenceAssemblySource

on macOS, this generates a lot of changes that are incorrect. A diff can be seen at main...vcsjones:diff-ssc

Notable things that are incorrect:

  1. Removing many overrides from AesCng, for example TryDecryptCbcCore. AesCng does override it.
  2. Removing IDisposable from CngKey.

This behavior only appears in macOS / Linux. On Windows, its results are reasonable, simple ordering or whitespace changes.

/cc @bartonjs @ViktorHofer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions