Port doc comment changes from docs repo#7152
Conversation
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
|
@ghogen just curious, do you do this manually or with a tool like https://github.com/carlossanlop/DocsPortingTool ? |
|
@danmoseley I did this manually, but yes the DocsPortingTool is designed to handle this kind of thing. It looked like a bit too much overhead for such a small number of changes. |
|
@ghogen that's cool, just checking we weren't missing an opportunity to share tech. |
Nirmal4G
left a comment
There was a problem hiding this comment.
Note inside remarks have markdown because of auto conversion but we don't need to copy them exactly as markdown. Just plain text is fine. Same as before.
Also, Type crefs are simplified. Some might not have usings defined in the file. Check and add necessary usings if needed!
| /// resource), not necessarily the assembly version. | ||
| /// If you want the assembly version, use Constants.AssemblyVersion. | ||
| /// This is not the <see cref="ToolsetsVersion">ToolsetCollectionVersion</see>. | ||
| /// This is not the <see cref="P:Microsoft.Build.BuildEngine.ToolsetCollection.ToolsVersions*">ToolsetCollection.ToolsVersions</see>. |
There was a problem hiding this comment.
| /// This is not the <see cref="P:Microsoft.Build.BuildEngine.ToolsetCollection.ToolsVersions*">ToolsetCollection.ToolsVersions</see>. | |
| /// This is not the <see cref="ToolsetCollection.ToolsVersions"/>. |
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of BuildEventArgsReader using a BinaryReader instance | ||
| /// Initializes a new instance of <see cref="T:Microsoft.Build.Logging.BuildEventArgsReader"/> using a <see cref="T:System.IO.BinaryReader"/> instance. |
There was a problem hiding this comment.
| /// Initializes a new instance of <see cref="T:Microsoft.Build.Logging.BuildEventArgsReader"/> using a <see cref="T:System.IO.BinaryReader"/> instance. | |
| /// Initializes a new instance of <see cref="BuildEventArgsReader"/> using a <see cref="BinaryReader"/> instance. |
| /// Initializes a new instance of <see cref="T:Microsoft.Build.Logging.BuildEventArgsReader"/> using a <see cref="T:System.IO.BinaryReader"/> instance. | ||
| /// </summary> | ||
| /// <param name="binaryReader">The BinaryReader to read BuildEventArgs from</param> | ||
| /// <param name="binaryReader">The <see cref="T:System.IO.BinaryReader"/> to read <see cref="T:Microsoft.Build.Framework.BuildEventArgs"/> from.</param> |
There was a problem hiding this comment.
| /// <param name="binaryReader">The <see cref="T:System.IO.BinaryReader"/> to read <see cref="T:Microsoft.Build.Framework.BuildEventArgs"/> from.</param> | |
| /// <param name="binaryReader">The <see cref="BinaryReader"/> to read <see cref="BuildEventArgs"/> from.</param> |
|
|
||
| /// <summary> | ||
| /// Reads the next log record from the binary reader. If there are no more records, returns null. | ||
| /// Reads the next log record from the <see cref="T:System.IO.BinaryReader"/>. |
There was a problem hiding this comment.
| /// Reads the next log record from the <see cref="T:System.IO.BinaryReader"/>. | |
| /// Reads the next log record from the <see cref="BinaryReader"/>. |
| /// Reads the next log record from the <see cref="T:System.IO.BinaryReader"/>. | ||
| /// </summary> | ||
| /// <returns> | ||
| /// The next <see cref="T:Microsoft.Build.Framework.BuildEventArgs" />. If there are no more records, returns <see langword="null" />. |
There was a problem hiding this comment.
| /// The next <see cref="T:Microsoft.Build.Framework.BuildEventArgs" />. If there are no more records, returns <see langword="null" />. | |
| /// The next <see cref="BuildEventArgs"/>. If there are no more records, returns <see langword="null"/>. |
| /// <remarks><format type="text/markdown"><![CDATA[ | ||
| /// ## Remarks | ||
| /// > [!NOTE] | ||
| /// > You must use the <xref:Microsoft.Build.Framework.SdkResultFactory> to return a result. | ||
| /// ]]></format> | ||
| /// </remarks> |
There was a problem hiding this comment.
| /// <remarks><format type="text/markdown"><![CDATA[ | |
| /// ## Remarks | |
| /// > [!NOTE] | |
| /// > You must use the <xref:Microsoft.Build.Framework.SdkResultFactory> to return a result. | |
| /// ]]></format> | |
| /// </remarks> | |
| /// <remarks> | |
| /// Note: You must use the <see cref="SdkResultFactory"/> to return a result. | |
| /// </remarks> |
| /// <format type="text/markdown"><![CDATA[ | ||
| /// ## Remarks | ||
| /// | ||
| /// File version is informational and not equal to the assembly version. | ||
| /// ]]></format> |
There was a problem hiding this comment.
| /// <format type="text/markdown"><![CDATA[ | |
| /// ## Remarks | |
| /// | |
| /// File version is informational and not equal to the assembly version. | |
| /// ]]></format> | |
| /// File version is informational and not equal to the assembly version. |
Do we need to include info about how the file version is calculated?
| /// <format type="text/markdown"><![CDATA[ | ||
| /// ## Remarks | ||
| /// > [!NOTE] | ||
| /// > Use <xref:Microsoft.Build.Framework.SdkResultFactory> to create instances of this class. Do not inherit from this class. | ||
| /// ]]></format> |
There was a problem hiding this comment.
| /// <format type="text/markdown"><![CDATA[ | |
| /// ## Remarks | |
| /// > [!NOTE] | |
| /// > Use <xref:Microsoft.Build.Framework.SdkResultFactory> to create instances of this class. Do not inherit from this class. | |
| /// ]]></format> | |
| /// Note: Use <see cref="SdkResultFactory"/> to create instances of this class. Do not inherit from this class. |
| /// <format type="text/markdown"><![CDATA[ | ||
| /// ## Remarks | ||
| /// Currently uses SHA1. The implementation is subject to change between MSBuild versions. | ||
| /// This class is not intended as a cryptographic security measure, only for uniqueness between build executions. | ||
| /// ]]></format> |
There was a problem hiding this comment.
| /// <format type="text/markdown"><![CDATA[ | |
| /// ## Remarks | |
| /// Currently uses SHA1. The implementation is subject to change between MSBuild versions. | |
| /// This class is not intended as a cryptographic security measure, only for uniqueness between build executions. | |
| /// ]]></format> | |
| /// Currently uses SHA1. The implementation is subject to change between MSBuild versions. | |
| /// This class is not intended as a cryptographic security measure, only for uniqueness between build executions. |
We have a PR for the cref changes at #7194, do we want to merge that first and then rebase this PR? |
|
@elachlan This is merged, so add these suggestions to your |
|
Do we have somewhere we said we want short crefs? I had no idea, but rainersigwald said no. |
|
If we'd originally listed it as info, that may have been a mistake on our part—if so, sorry about that! |
|
I don't feel strongly about the short/long crefs. I do feel strongly that that style issue shouldn't block this change to reduce pain on our docs partners. |
|
@ghogen is the markdown important in this issue? Nirmal's suggestions have been applied in another PR and I wanted to make sure whether or not the markdown was required and needed to be preserved. |
|
@elachlan @Nirmal4G |
The XML Doc comments already includes all these in the |
Fixes #7151
Context
Doc comments are changed from time to time in the dotnet-api-docs repo. These changes need to be ported back to the MSBuild source, now that the MSBuild source is being used as the source-of-truth for MSBuild reference docs.
Changes Made
Comment-only changes in a number of source files.
Testing
Notes
The changes that were required can also be found here: dotnet/dotnet-api-docs#7484 - this docs PR was necessary to prevent the dotnet-api-docs changes from being overwritten when the comments were re-read from MSBuild sources for the 17.0 version of MSBuild.