Conversation
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
|
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones |
bartonjs
left a comment
There was a problem hiding this comment.
As long as someone who knows about building things signs off on ProjectRef vs PackageRef, and @tannergooding or someone can give a grunt of assent regarding the RequiresPreview attribute, I think that we can call this good enough for first partner preview.
safern
left a comment
There was a problem hiding this comment.
Other than a few comments/questions, build changes look good.
tests: add test project to exclusion list of local browser runs
buyaa-n
left a comment
There was a problem hiding this comment.
Left a NIT, overall attributes annotations LGTM
| public bool Verify(System.Security.Cryptography.ECDsa key, System.ReadOnlySpan<byte> content) { throw null; } | ||
| [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] | ||
| public bool Verify(System.Security.Cryptography.RSA key) { throw null; } | ||
| [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] |
There was a problem hiding this comment.
NIT: probably better to apply the attribute at the type level as all membrs have it except internal constructor
There was a problem hiding this comment.
Given that is a nit and the CI finished mostly clean, I will address this in a future PR.
There was a problem hiding this comment.
One a second thought, we shouldn't move the attribute to the type since the internal .ctor is used in an API (CoseMessage.DecodeSign1) that can be called from browser.
| internal CoseSign1Message(CoseHeaderMap protectedHeader, CoseHeaderMap unprotectedHeader, byte[]? content, byte[] signature, byte[] protectedHeaderAsBstr) | ||
| : base(protectedHeader, unprotectedHeader, content, signature, protectedHeaderAsBstr) { } | ||
|
|
||
| [UnsupportedOSPlatform("browser")] |
There was a problem hiding this comment.
browser-compat is supposed to be opt-in, so I wouldn't expect this to trip.
That is right, by defualt it should not warn for cross platform builds, but browser team wanted to see/propogate the warning for cross-platform builds in runtime repo
Ahhh. Thanks for the explanation :) |
Fixes #32121.
Contributes to #62600.