Skip to content

Commit 440ff0d

Browse files
authored
Port new triple slash docs for .NET 7 (mostly EII) (dotnet#7424)
Co-authored-by: Genevieve Warren <[email protected]> * System * System.Activities * System.ComponentModel * System.Device * System.Dynamic * System.IdentityModel * System.IO.Compression * System.Messaging * System.Numerics * System.Resources * System.Runtime.Intrinsics * System.Security.Cryptography * System.Speech * System.Text.Json * System.Transactions * System.Web * System.Workflow * Microsoft.Extensions.Configuration * Microsoft.Extension.Primitives * Microsoft.Build.Construction * Microsoft.Build.Framework * Microsoft.Build.Globbing * Microsoft.Build.Graph * Microsoft.Build.Logging * Microsoft.Build.Tasks
1 parent a939ae5 commit 440ff0d

File tree

105 files changed

+3491
-1795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3491
-1795
lines changed

xml/Microsoft.Build.Construction/ProjectElement.xml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</Interfaces>
2626
<Docs>
2727
<summary>
28-
Abstract base class for MSBuild construction object model elements.
28+
Abstract base class for MSBuild construction object model elements.
2929
</summary>
3030
<remarks>To be added.</remarks>
3131
</Docs>
@@ -153,22 +153,22 @@
153153
</ReturnValue>
154154
<Docs>
155155
<summary>
156-
Gets or sets the Condition value.
157-
It will return empty string IFF a condition attribute is legal but it’s not present or has no value.
156+
Gets or sets the Condition value.
157+
It will return empty string IFF a condition attribute is legal but it’s not present or has no value.
158158
It will return null IFF a Condition attribute is illegal on that element.
159159
Removes the attribute if the value to set is empty.
160160
It is possible for derived classes to throw an <see cref="T:System.InvalidOperationException" /> if setting the condition is
161161
not applicable for those elements.
162162
</summary>
163163
<value>The Condition attribute value, or an empty string if the attribute is not present.</value>
164164
<remarks>
165-
<format type="text/markdown"><![CDATA[
166-
167-
## Remarks
168-
Removes the Condition attribute if the value to set is set to null or an empty string. If the Condition attribute is not present, returns an empty string instead of throwing an exception because a nonexistent condition is implicitly true
169-
170-
For the "ProjectExtensions" element, the getter returns null and the setter throws an exception for any value.
171-
165+
<format type="text/markdown"><![CDATA[
166+
167+
## Remarks
168+
Removes the Condition attribute if the value to set is set to null or an empty string. If the Condition attribute is not present, returns an empty string instead of throwing an exception because a nonexistent condition is implicitly true
169+
170+
For the "ProjectExtensions" element, the getter returns null and the setter throws an exception for any value.
171+
172172
]]></format>
173173
</remarks>
174174
<example> For the "ProjectExtensions" element, the getter returns null and the setter
@@ -320,7 +320,7 @@
320320
<ReturnType>System.String</ReturnType>
321321
</ReturnValue>
322322
<Docs>
323-
<summary>To be added.</summary>
323+
<summary>Gets the name of the associated element. Useful for display in some circumstances.</summary>
324324
<value>To be added.</value>
325325
<remarks>To be added.</remarks>
326326
<inheritdoc />
@@ -354,17 +354,17 @@
354354
</ReturnValue>
355355
<Docs>
356356
<summary>
357-
Gets or sets the Label value.
357+
Gets or sets the Label value.
358358
Returns empty string if it is not present.
359359
Removes the attribute if the value to set is empty.
360360
</summary>
361361
<value>The label, or an empty string if no label is present.</value>
362362
<remarks>
363-
<format type="text/markdown"><![CDATA[
364-
365-
## Remarks
366-
Removes the attribute if the value to set is empty.
367-
363+
<format type="text/markdown"><![CDATA[
364+
365+
## Remarks
366+
Removes the attribute if the value to set is empty.
367+
368368
]]></format>
369369
</remarks>
370370
</Docs>
@@ -413,7 +413,7 @@
413413
<Docs>
414414
<summary>
415415
Location of the corresponding Xml element.
416-
May not be correct if file is not saved, or
416+
May not be correct if file is not saved, or
417417
file has been edited since it was last saved.
418418
In the case of an unsaved edit, the location only
419419
contains the path to the file that the element originates from.
@@ -486,7 +486,7 @@
486486
<ReturnType>System.String</ReturnType>
487487
</ReturnValue>
488488
<Docs>
489-
<summary>To be added.</summary>
489+
<summary>The outer markup associated with this project element.</summary>
490490
<value>To be added.</value>
491491
<remarks>To be added.</remarks>
492492
<inheritdoc />
@@ -594,9 +594,7 @@
594594
</Parameters>
595595
<Docs>
596596
<param name="attribute">To be added.</param>
597-
<summary>
598-
Hook for subclasses to specify whether the given <param name="attribute" /> should be cloned or not
599-
</summary>
597+
<summary>Hook for subclasses to specify whether the given <paramref name="attribute" /> should be cloned or not.</summary>
600598
<returns>To be added.</returns>
601599
<remarks>To be added.</remarks>
602600
</Docs>

xml/Microsoft.Build.Framework/SdkReference.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@
7979
<Parameter Name="other" Type="Microsoft.Build.Framework.SdkReference" />
8080
</Parameters>
8181
<Docs>
82-
<param name="other" />
83-
<summary />
84-
<returns />
82+
<param name="other">An object to compare with this object.</param>
83+
<summary>Indicates whether the current object is equal to another object of the same type.</summary>
84+
<returns>
85+
<see langword="true" /> if the current object is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false" />.</returns>
8586
<remarks>To be added.</remarks>
8687
</Docs>
8788
</Member>

xml/Microsoft.Build.Globbing/CompositeGlob.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,24 @@
122122
<Parameter Name="stringToMatch" Type="System.String" />
123123
</Parameters>
124124
<Docs>
125-
<param name="stringToMatch">To be added.</param>
126-
<summary>To be added.</summary>
127-
<returns>To be added.</returns>
128-
<remarks>To be added.</remarks>
125+
<param name="stringToMatch">The string to match. If the string represents a relative path, it will get normalized against the glob's root. Cannot be <see langword="null" />.</param>
126+
<summary>Matches the given <paramref name="stringToMatch" /> against the glob.</summary>
127+
<returns>
128+
<see langword="false" /> if <paramref name="stringToMatch" /> contains invalid path or file characters; <see langword="true"/> otherwise.</returns>
129+
<remarks>
130+
<format type="text/markdown"><![CDATA[
131+
132+
## Remarks
133+
134+
Matching is path aware:
135+
136+
- Slashes are normalized.
137+
- Arguments representing relative paths are normalized against the glob's root.
138+
139+
For example, the glob `**/*.cs` does not match `../a.cs`, since `../a.cs` points outside of the glob root.
140+
141+
]]></format>
142+
</remarks>
129143
<inheritdoc />
130144
</Docs>
131145
</Member>

xml/Microsoft.Build.Globbing/MSBuildGlob.xml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,22 @@
126126
<Parameter Name="stringToMatch" Type="System.String" />
127127
</Parameters>
128128
<Docs>
129-
<param name="stringToMatch">To be added.</param>
130-
<summary>To be added.</summary>
131-
<returns>To be added.</returns>
132-
<remarks>To be added.</remarks>
129+
<param name="stringToMatch">The string to match. If the string represents a relative path, it will get normalized against the glob's root. Cannot be <see langword="null" />.</param>
130+
<summary>Matches the given <paramref name="stringToMatch" /> against the glob.</summary>
131+
<returns>
132+
<see langword="false" /> if <paramref name="stringToMatch" /> contains invalid path or file characters; <see langword="true"/> otherwise.</returns>
133+
<remarks><format type="text/markdown"><![CDATA[
134+
135+
## Remarks
136+
137+
Matching is path aware:
138+
139+
- Slashes are normalized.
140+
- Arguments representing relative paths are normalized against the glob's root.
141+
142+
For example, the glob `**/*.cs` does not match `../a.cs`, since `../a.cs` points outside of the glob root.
143+
144+
]]></format></remarks>
133145
<inheritdoc />
134146
</Docs>
135147
</Member>

xml/Microsoft.Build.Globbing/MSBuildGlobWithGaps.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,24 @@
146146
<Parameter Name="stringToMatch" Type="System.String" />
147147
</Parameters>
148148
<Docs>
149-
<param name="stringToMatch">To be added.</param>
150-
<summary>To be added.</summary>
151-
<returns>To be added.</returns>
152-
<remarks>To be added.</remarks>
149+
<param name="stringToMatch">The string to match. If the string represents a relative path, it will get normalized against the glob's root. Cannot be <see langword="null" />.</param>
150+
<summary>Matches the given <paramref name="stringToMatch" /> against the glob.</summary>
151+
<returns>
152+
<see langword="false" /> if <paramref name="stringToMatch" /> contains invalid path or file characters; <see langword="true" /> otherwise.</returns>
153+
<remarks>
154+
<format type="text/markdown"><![CDATA[
155+
156+
## Remarks
157+
158+
Matching is path aware:
159+
160+
- Slashes are normalized.
161+
- Arguments representing relative paths are normalized against the glob's root.
162+
163+
For example, the glob `**/*.cs` does not match `../a.cs`, since `../a.cs` points outside of the glob root.
164+
165+
]]></format>
166+
</remarks>
153167
<inheritdoc />
154168
</Docs>
155169
</Member>

xml/Microsoft.Build.Graph/GraphBuildOptions.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@
148148
<Parameter Name="other" Type="Microsoft.Build.Graph.GraphBuildOptions" />
149149
</Parameters>
150150
<Docs>
151-
<param name="other">To be added.</param>
152-
<summary>To be added.</summary>
153-
<returns>To be added.</returns>
151+
<param name="other">An object to compare with this object.</param>
152+
<summary>Indicates whether the current object is equal to another object of the same type.</summary>
153+
<returns>
154+
<see langword="true" /> if the current object is equal to the <paramref name="other" /> parameter; otherwise, <see langword="false" />.</returns>
154155
<remarks>To be added.</remarks>
155156
</Docs>
156157
</Member>

xml/Microsoft.Build.Logging/BinaryLogger.xml

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818
</Interface>
1919
</Interfaces>
2020
<Docs>
21-
<summary>
22-
A logger that serializes all incoming BuildEventArgs in a compressed binary file (*.binlog). The file
23-
can later be played back and piped into other loggers (file, console, etc) to reconstruct the log contents
24-
as if a real build was happening. Additionally, this format can be read by tools for
25-
analysis or visualization. Since the file format preserves structure, tools don't have to parse
26-
text logs that erase a lot of useful information.
27-
</summary>
21+
<summary>A logger that serializes all incoming BuildEventArgs in a compressed binary file (*.binlog). The file can later be played back and piped into other loggers (file, console, etc) to reconstruct the log contents as if a real build was happening. Additionally, this format can be read by tools for analysis or visualization. Since the file format preserves structure, tools don't have to parse text logs that erase a lot of useful information.</summary>
2822
<remarks>The logger is public so that it can be instantiated from MSBuild.exe via command-line switch.</remarks>
2923
</Docs>
3024
<Members>
@@ -41,7 +35,7 @@
4135
</AssemblyInfo>
4236
<Parameters />
4337
<Docs>
44-
<summary>To be added.</summary>
38+
<summary>Initializes a new <see cref="T:Microsoft.Build.Logging.BinaryLogger"/> instance.</summary>
4539
<remarks>To be added.</remarks>
4640
</Docs>
4741
</Member>
@@ -61,9 +55,7 @@
6155
<ReturnType>Microsoft.Build.Logging.BinaryLogger+ProjectImportsCollectionMode</ReturnType>
6256
</ReturnValue>
6357
<Docs>
64-
<summary>
65-
Gets or sets whether to capture and embed project and target source files used during the build.
66-
</summary>
58+
<summary>Gets or sets whether to capture and embed project and target source files used during the build.</summary>
6759
<value>To be added.</value>
6860
<remarks>To be added.</remarks>
6961
</Docs>
@@ -90,10 +82,8 @@
9082
<Parameter Name="eventSource" Type="Microsoft.Build.Framework.IEventSource" />
9183
</Parameters>
9284
<Docs>
93-
<param name="eventSource">To be added.</param>
94-
<summary>
95-
Initializes the logger by subscribing to events of IEventSource
96-
</summary>
85+
<param name="eventSource">The events available to loggers.</param>
86+
<summary>Initializes the logger by subscribing to events of the specified event source.</summary>
9787
<remarks>To be added.</remarks>
9888
</Docs>
9989
</Member>
@@ -116,10 +106,8 @@
116106
<ReturnType>System.String</ReturnType>
117107
</ReturnValue>
118108
<Docs>
119-
<summary>
120-
The only supported parameter is the output log file path (e.g. "msbuild.binlog")
121-
</summary>
122-
<value>To be added.</value>
109+
<summary>Gets or sets the parameters. The only supported parameter is the output log file path (for example, "msbuild.binlog").</summary>
110+
<value>The parameter string. Can be <see langword="null"/>.</value>
123111
<remarks>To be added.</remarks>
124112
</Docs>
125113
</Member>
@@ -143,9 +131,7 @@
143131
</ReturnValue>
144132
<Parameters />
145133
<Docs>
146-
<summary>
147-
Closes the underlying file stream.
148-
</summary>
134+
<summary>Closes the underlying file stream.</summary>
149135
<remarks>To be added.</remarks>
150136
</Docs>
151137
</Member>
@@ -168,12 +154,9 @@
168154
<ReturnType>Microsoft.Build.Framework.LoggerVerbosity</ReturnType>
169155
</ReturnValue>
170156
<Docs>
171-
<summary>
172-
The binary logger Verbosity is always maximum (Diagnostic). It tries to capture as much
173-
information as possible.
174-
</summary>
175-
<value>To be added.</value>
176-
<remarks>To be added.</remarks>
157+
<summary>Gets or sets the verbosity level.</summary>
158+
<value>The verbosity level.</value>
159+
<remarks>The binary logger Verbosity is always maximum (Diagnostic). It tries to capture as much information as possible.</remarks>
177160
</Docs>
178161
</Member>
179162
</Members>

xml/Microsoft.Build.Logging/BuildEventArgsReader.xml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
</Interface>
1919
</Interfaces>
2020
<Docs>
21-
<summary>
22-
Deserializes and returns BuildEventArgs-derived objects from a BinaryReader
23-
</summary>
21+
<summary>Deserializes and returns <see cref="T:Microsoft.Build.Framework.BuildEventArgs"/>-derived objects from a <see cref="T:System.IO.BinaryReader"/>.</summary>
2422
<remarks>To be added.</remarks>
2523
</Docs>
2624
<Members>
@@ -41,11 +39,9 @@
4139
<Parameter Name="fileFormatVersion" Type="System.Int32" />
4240
</Parameters>
4341
<Docs>
44-
<param name="binaryReader">The BinaryReader to read BuildEventArgs from</param>
42+
<param name="binaryReader">The <see cref="T:System.IO.BinaryReader"/> to read <see cref="T:Microsoft.Build.Framework.BuildEventArgs"/> from.</param>
4543
<param name="fileFormatVersion">The file format version of the log file being read.</param>
46-
<summary>
47-
Initializes a new instance of BuildEventArgsReader using a BinaryReader instance
48-
</summary>
44+
<summary>Initializes a new instance of <see cref="T:Microsoft.Build.Logging.BuildEventArgsReader"/> using a <see cref="T:System.IO.BinaryReader"/> instance.</summary>
4945
<remarks>To be added.</remarks>
5046
</Docs>
5147
</Member>
@@ -69,7 +65,7 @@
6965
</ReturnValue>
7066
<Parameters />
7167
<Docs>
72-
<summary>To be added.</summary>
68+
<summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
7369
<remarks>To be added.</remarks>
7470
</Docs>
7571
</Member>
@@ -90,10 +86,8 @@
9086
</ReturnValue>
9187
<Parameters />
9288
<Docs>
93-
<summary>
94-
Reads the next log record from the binary reader. If there are no more records, returns null.
95-
</summary>
96-
<returns>To be added.</returns>
89+
<summary>Reads the next log record from the <see cref="T:System.IO.BinaryReader"/>.</summary>
90+
<returns>The next <see cref="T:Microsoft.Build.Framework.BuildEventArgs"/>. If there are no more records, returns <see langword="null"/>.</returns>
9791
<remarks>To be added.</remarks>
9892
</Docs>
9993
</Member>

0 commit comments

Comments
 (0)