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:
- Removing many overrides from
AesCng, for example TryDecryptCbcCore. AesCng does override it.
- 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