Skip to content

Record-syntax issues #8

Answered by saucecontrol
TobiasWolters asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you have a couple of problems there...

The first warning you've got (CS1574) is from the C# compiler, saying it can't resolve the cref. When that happens, the identifier in the comment is prefixed with !: (as defined in the spec), which then means InheritDocTask can't resolve the reference. I am unable to reproduce that with the .NET6 RC1 SDK, so that would appear to be a Roslyn bug that has been resolved.

The second issue you have is that you're trying to inherit a summary into a param. You must give an explicit path in this case so that you reach into the content of the summary, which would make that doc line <param name="Int"><inheritdoc cref="A.Int" path="/summary/node()"/>…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TobiasWolters
Comment options

Answer selected by TobiasWolters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7 on September 29, 2021 18:02.