-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Create PublicAPI.Unshipped.txt #24299
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
Conversation
@dougbu is this the intended resolution to #24258 (comment)? |
Hmm, CI not passing, going through it again. Wasn't getting RS0016 locally with these changes. |
No, get rid of the src/Http files and you'll be done. My setup was an example for adding a brand new API baseline. Sorry if I didn't make that clear. The updated existing baseline files look good. |
@@ -51,7 +51,7 @@ Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext.Candidates.ge | |||
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext.Candidates.set -> void | |||
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext.CurrentCandidate.get -> Microsoft.AspNetCore.Mvc.ActionConstraints.ActionSelectorCandidate | |||
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext.CurrentCandidate.set -> void | |||
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext.RouteContext.get -> Microsoft.AspNetCore.Routing.RouteContext! | |||
Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext.RouteContext.get -> RouteContext! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, I'm not sure why these lines are changing. Suggest running through the update steps I described in email using src/Mvc/startvs.cmd
instead. Something may be missing.
In more detail, this was my fault for not making the example clear. Using |
Retrying, thanks |
Thanks @TanayParikh /fyi the RS0026 errors in src/Http are expected and need to be suppressed. But, let's not mix adding new API baselines into this PR. |
3fd32a1
to
602afec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look on-target. @pranavkm you might want to refer to this PR in your API Review 😺
Hello @TanayParikh! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Support both forms of Clone methods to detect record types
@@ -143,7 +143,8 @@ private static ConstructorInfo GetRecordTypeConstructor(Type type, ConstructorIn | |||
static bool IsRecordType(Type type) | |||
{ | |||
// Based on the state of the art as described in https://github.com/dotnet/roslyn/issues/45777 | |||
var cloneMethod = type.GetMethod("<>Clone", BindingFlags.Public | BindingFlags.Instance); | |||
var cloneMethod = type.GetMethod("<Clone>$", BindingFlags.Public | BindingFlags.Instance) ?? | |||
type.GetMethod("<>Clone", BindingFlags.Public | BindingFlags.Instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally commented on a commit:
Are we using a slightly different version of Roslyn in 'master'❔
And, how did validation pass for the merge PR from preview8 (https://github.com/dotnet/aspnetcore/pull/24258/checks)❔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc/ @pranavkm
Yippee 🥇 |
Fixes: #24258 (comment)
Still getting
RS0026
(“Do not add multiple public overloads with optional parameters”)