-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[OpenAPI] XML source generator does not correctly escape <see>
tags
#61042
Comments
<see>
tags<see>
tags
@martincostello Any interest in taking a stab at fixing this bug? We'll need to update these methods to handle the langword attribute and add coverage for this in the CompletenessTests. |
Looks like this issue has been identified as a candidate for community contribution. If you're considering sending a PR for this issue, look for the |
@captainsafia Sure, I can take a look. |
Nevermind, I see now that it does, I just expected the snapshot to be verified after checking it compiled rather than before. |
Handle `<see langword="" />` references in XML documentation as inline code. Contributes to dotnet#61042.
@martincostello Glad you got it figured out! I set it up so that you still get snapshots for uncompilable code so you can see where the errors are more easily. |
Is there an existing issue for this?
Describe the bug
If XML documentation comments contain content such as
<see langword="true" />
, it is not correctly escaped in the generated source and causes compilation to fail:I discovered this by chance as I had a project that contained a class that implemented
IDisposable
with boilerplate comments on the members implementing the interface.Expected Behavior
The application compiles.
Steps To Reproduce
Exceptions (if any)
No response
.NET Version
10.0.100-preview.2.25164.34
Anything else?
No response
The text was updated successfully, but these errors were encountered: