-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview 5 has two identical copies of System.Security.Cryptography.Cng.dll #54427
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Confirmed this is the case. @dougbu, this needs to be removed from ASP.NET ref-pack. Looks like it's no longer in runtime pack/shared-fx but still present in ref-pack. |
Was this assembly added to Microsoft.NETCore.App.* while we weren't looking❔ We've long (at least since 3.1.0) had a weird case where Cryptography.Cng was in our targeting packs but not our runtimes (and visa-versa for Cryptography.Pkcs). The Microsoft.NETCore.App.Ref content changed between preview 4 and 5, adding Cryptography.Cng (and Cryptograph.OpenSsl). Was that change intentional @ericstj❔ If it matters, I don't see any changes in that period between the runtimes. |
In any case, something odd is happening. in our App.Ref exclusions should mean we don't duplicate anything from Microsoft.NETCore.App.Ref in our Microsoft.AspNetCore.App.Ref. |
@ericstj if Cryptography.Cng was intentionally added to Microsoft.NETCore.App.Ref, the bug here is leaving System.Security.Cryptography.Cng in Microsoft.AspNetCore.Internal.Transport. Our repo expects the transport package to contain only additional ref/ assemblies we need. The duplication between Microsoft.AspNetCore.Internal.Transport and Microsoft.NETCore.App.Ref can't be correct and special-casing it to avoid this bug seems Just Wrong:tm: (Side note: We still don't need implementation assemblies in Microsoft.AspNetCore.Internal.Transport) |
Yes it was exposed with #51853. Cc @ViktorHofer |
To remove from the transport package we need to remove
|
Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks Issue DetailsIn .NET 6 preview 5, there are identical copies of System.Security.Cryptography.Cng.dll in two different targeting packs, one in Microsoft.NETCore.App.Ref and another in Microsoft.AspNetCore.App.Ref. I first mentioned this in a Tweet: https://twitter.com/eric_sink/status/1405727524194242566 to which @davidfowl replied "That sounds like a bug...", so I figured it should be logged, and hopefully this is the right place.
|
I like one line fixes 😃 |
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsIn .NET 6 preview 5, there are identical copies of System.Security.Cryptography.Cng.dll in two different targeting packs, one in Microsoft.NETCore.App.Ref and another in Microsoft.AspNetCore.App.Ref. I first mentioned this in a Tweet: https://twitter.com/eric_sink/status/1405727524194242566 to which @davidfowl replied "That sounds like a bug...", so I figured it should be logged, and hopefully this is the right place.
|
In .NET 6 preview 5, there are identical copies of System.Security.Cryptography.Cng.dll in two different targeting packs, one in Microsoft.NETCore.App.Ref and another in Microsoft.AspNetCore.App.Ref.
I first mentioned this in a Tweet:
https://twitter.com/eric_sink/status/1405727524194242566
to which @davidfowl replied "That sounds like a bug...", so I figured it should be logged, and hopefully this is the right place.
The text was updated successfully, but these errors were encountered: