Skip to content

Commit 539e634

Browse files
authored
Merge pull request dotnet#5399 from dotnet/main
Publish live from main
2 parents 49c57b0 + c39d544 commit 539e634

File tree

14 files changed

+83
-21
lines changed

14 files changed

+83
-21
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: 'target supported version'
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
schedule:
9+
- cron: '0 0 1 * *'
10+
workflow_dispatch:
11+
inputs:
12+
reason:
13+
description: 'The reason for running the workflow'
14+
required: true
15+
default: 'Manual run'
16+
17+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
18+
jobs:
19+
# This workflow contains a single job called "build"
20+
version-sweep:
21+
# The type of runner that the job will run on
22+
runs-on: ubuntu-latest
23+
24+
# Steps represent a sequence of tasks that will be executed as part of the job
25+
steps:
26+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- uses: actions/checkout@v2
28+
29+
# Runs a single command using the runners shell
30+
- name: 'Print manual run reason'
31+
if: ${{ github.event_name == 'workflow_dispatch' }}
32+
run: |
33+
echo 'Reason: ${{ github.event.inputs.reason }}'
34+
# Start the .NET version sweeper, scan projects/slns for non-LTS (or currrent) versions
35+
- name: .NET version sweeper
36+
id: dotnet-version-sweeper
37+
uses: dotnet/versionsweeper@v1.2
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
owner: ${{ github.repository_owner }}
42+
name: ${{ github.repository }}
43+
branch: ${{ github.ref }}

xml/Microsoft.Extensions.FileSystemGlobbing/FilePatternMatch.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
<Parameter Name="stem" Type="System.String" />
5454
</Parameters>
5555
<Docs>
56-
<param name="path">The path to the matched file</param>
57-
<param name="stem">The stem</param>
56+
<param name="path">The path to the file matched, relative to the beginning of the matching search pattern.</param>
57+
<param name="stem">The subpath to the file matched, relative to the first wildcard in the matching search pattern.</param>
5858
<summary>Initializes new instance of <see cref="T:Microsoft.Extensions.FileSystemGlobbing.FilePatternMatch" /></summary>
5959
<remarks>To be added.</remarks>
6060
</Docs>
@@ -180,10 +180,10 @@
180180
<ReturnType>System.String</ReturnType>
181181
</ReturnValue>
182182
<Docs>
183-
<summary>The path to the file matched.</summary>
183+
<summary>The path to the file matched, relative to the beginning of the matching search pattern.</summary>
184184
<value>To be added.</value>
185-
<remarks>If the matcher searched for "**/*.cs" using "src/Project" as the directory base and the pattern matcher found
186-
"src/Project/Interfaces/IFile.cs", then Stem = "Interfaces/IFile.cs" and Path = "src/Project/Interfaces/IFile.cs".</remarks>
185+
<remarks>If the matcher searched for "src/Project/**/*.cs" and the pattern matcher found "src/Project/Interfaces/IFile.cs",
186+
then <see cref="Stem" /> = "Interfaces/IFile.cs" and <see cref="Path" /> = "src/Project/Interfaces/IFile.cs".</remarks>
187187
</Docs>
188188
</Member>
189189
<Member MemberName="Stem">
@@ -209,11 +209,10 @@
209209
<ReturnType>System.String</ReturnType>
210210
</ReturnValue>
211211
<Docs>
212-
<summary>The subpath to the matched file under the base directory searched.</summary>
212+
<summary>The subpath to the file matched, relative to the first wildcard in the matching search pattern.</summary>
213213
<value>To be added.</value>
214-
<remarks>If the matcher searched for "**/*.cs" using "src/Project" as the directory base and the pattern matcher found
215-
"src/Project/Interfaces/IFile.cs",
216-
then Stem = "Interfaces/IFile.cs" and Path = "src/Project/Interfaces/IFile.cs".</remarks>
214+
<remarks>If the matcher searched for "src/Project/**/*.cs" and the pattern matcher found "src/Project/Interfaces/IFile.cs",
215+
then <see cref="Stem" /> = "Interfaces/IFile.cs" and <see cref="Path" /> = "src/Project/Interfaces/IFile.cs".</remarks>
217216
</Docs>
218217
</Member>
219218
</Members>

xml/System.IO/File.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,6 +2518,8 @@ Note that if you attempt to replace a file by moving a file of the same name int
25182518
25192519
The `sourceFileName` and `destFileName` arguments can include relative or absolute path information. Relative path information is interpreted as relative to the current working directory. To obtain the current working directory, see <xref:System.IO.Directory.GetCurrentDirectory%2A>.
25202520
2521+
Moving the file across disk volumes is equivalent to copying the file and deleting it from the source if the copying was successful.
2522+
25212523
If you try to move a file across disk volumes and that file is in use, the file is copied to the destination, but it is not deleted from the source.
25222524
25232525
For a list of common I/O tasks, see [Common I/O Tasks](/dotnet/standard/io/common-i-o-tasks).
@@ -2534,6 +2536,10 @@ The following example moves a file.
25342536
</remarks>
25352537
<exception cref="T:System.IO.IOException">
25362538
<paramref name="destFileName" /> already exists.
2539+
2540+
-or-
2541+
2542+
An I/O error has occurred, e.g. while copying the file across disk volumes.
25372543
</exception>
25382544
<exception cref="T:System.IO.FileNotFoundException">
25392545
<paramref name="sourceFileName" /> was not found.
@@ -2595,6 +2601,8 @@ This method works across disk volumes, and it does not throw an exception if the
25952601
25962602
The `sourceFileName` and `destFileName` arguments can include relative or absolute path information. Relative path information is interpreted as relative to the current working directory. To obtain the current working directory, see <xref:System.IO.Directory.GetCurrentDirectory%2A>.
25972603
2604+
Moving the file across disk volumes is equivalent to copying the file and deleting it from the source if the copying was successful.
2605+
25982606
If you try to move a file across disk volumes and that file is in use, the file is copied to the destination, but it is not deleted from the source.
25992607
26002608
For a list of common I/O tasks, see [Common I/O Tasks](/dotnet/standard/io/common-i-o-tasks).
@@ -2611,6 +2619,10 @@ The following example moves a file.
26112619
</remarks>
26122620
<exception cref="T:System.IO.IOException">
26132621
<paramref name="destFileName" /> already exists and <paramref name="overwrite" /> is <see langword="false" />.
2622+
2623+
-or-
2624+
2625+
An I/O error has occurred, e.g. while copying the file across disk volumes.
26142626
</exception>
26152627
<exception cref="T:System.IO.FileNotFoundException">
26162628
<paramref name="sourceFileName" /> was not found.</exception>

xml/System.IO/Path.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
5959
## Remarks
6060
61-
A path is a string that provides the location of a file or directory. A path does not necessarily point to a location on disk; for example, a path might map to a location in memory or on a device. The exact format of a path is determined by the current platform. For example, on some systems, a path can start with a drive or volume letter, while this element is not present in other systems. On some systems, file paths can contain extensions, which indicate the type of information stored in the file. The format of a file name extension is platform-dependent; for example, some systems limit extensions to three characters, and others do not. The current platform also determines the set of characters used to separate the elements of a path, and the set of characters that cannot be used when specifying paths. Because of these differences, the fields of the `Path` class as well as the exact behavior of some members of the `Path` class are platform-dependent.
61+
A path is a string that provides the location of a file or directory. A path does not necessarily point to a location on disk; for example, a path might map to a location in memory or on a device. The exact format of a path is determined by the current platform. For example, on some systems, a path can start with a drive or volume letter, while this element is not present in other systems. On some systems, file paths can contain extensions, which indicate the type of information stored in the file. The format of a file name extension is platform-dependent; for example, some systems limit extensions to three characters (such as FAT16 commonly used on smaller flash storage and older versions of ISO 9660 used on optical media), and others do not. The current platform also determines the set of characters used to separate the elements of a path, and the set of characters that cannot be used when specifying paths. Because of these differences, the fields of the `Path` class as well as the exact behavior of some members of the `Path` class are platform-dependent.
6262
6363
A path can contain absolute or relative location information. Absolute paths fully specify a location: the file or directory can be uniquely identified regardless of the current location. Relative paths specify a partial location: the current location is used as the starting point when locating a file specified with a relative path. To determine the current directory, call <xref:System.IO.Directory.GetCurrentDirectory%2A?displayProperty=nameWithType>.
6464
@@ -1930,7 +1930,7 @@ Paths are resolved by calling the <xref:System.IO.Path.GetFullPath%2A> method be
19301930
19311931
# [Linux](#tab/linux)
19321932
1933-
1. The path specified by the TMPDIR environment variable.
1933+
1. The path specified by the TMPDIR environment variable. If the path is not specified in the `TMPDIR` environment variable, the default path `/tmp/` is used.
19341934
19351935
---
19361936

xml/System.Net.Http.Headers/TransferCodingWithQualityHeaderValue.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</Interface>
3838
</Interfaces>
3939
<Docs>
40-
<summary>Represents an Accept-Encoding header value.with optional quality factor.</summary>
40+
<summary>Represents an Accept-Encoding header value with optional quality factor.</summary>
4141
<remarks>
4242
<format type="text/markdown"><![CDATA[
4343

xml/System.Net.Http/HttpClient.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Starting with .NET Core 2.1, the <xref:System.Net.Http.SocketsHttpHandler?displa
117117
- The elimination of platform dependencies, which simplifies deployment and servicing. For example, `libcurl` is no longer a dependency on .NET Core for macOS and .NET Core for Linux.
118118
- Consistent behavior across all .NET platforms.
119119
120-
If this change is undesirable, on Windows you can still use <xref:System.Net.Http.WinHttpHandler> by referencing it's [NuGet package](https://www.nuget.org/packages/System.Net.Http.WinHttpHandler/) and passing it to [`HttpClient`'s constructor`](xref:System.Net.Http.HttpClient.%23ctor(System.Net.Http.HttpMessageHandler)) manually.
120+
If this change is undesirable, on Windows you can still use <xref:System.Net.Http.WinHttpHandler> by referencing it's [NuGet package](https://www.nuget.org/packages/System.Net.Http.WinHttpHandler/) and passing it to [`HttpClient`'s constructor](xref:System.Net.Http.HttpClient.%23ctor(System.Net.Http.HttpMessageHandler)) manually.
121121
122122
### Configure behavior using run-time configuration options
123123

xml/System.Net.Http/HttpMessageHandler.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
## Remarks
246246
This operation will not block. The returned <xref:System.Threading.Tasks.Task%601> object will complete once the entire response including content is read.
247247
248-
The <xref:System.Net.Http.HttpMessageHandler.SendAsync%2A> method is used primarily by the system. This method is called by the system one of the <xref:System.Net.Http.HttpClient.SendAsync%2A?displayProperty=nameWithType> methods is called. Most apps will never call this method.
248+
The <xref:System.Net.Http.HttpMessageHandler.SendAsync%2A> method is used primarily by the system. This method is called by the system when one of the <xref:System.Net.Http.HttpClient.SendAsync%2A?displayProperty=nameWithType> methods is called. Most apps will never call this method.
249249
250250
]]></format>
251251
</remarks>

xml/System.Threading.Tasks/Task.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
120120
<a name="WaitingForOne"></a>
121121
## Waiting for one or more tasks to complete
122-
Because tasks typically run asynchronously on a thread pool thread, the thread that creates and starts the task continues execution as soon as the task has been instantiated. In some cases, when the calling thread is the main application thread, the app may terminate before any the task actually begins execution. In others, your application's logic may require that the calling thread continue execution only when one or more tasks has completed execution. You can synchronize the execution of the calling thread and the asynchronous tasks it launches by calling a `Wait` method to wait for one or more tasks to complete.
122+
Because tasks typically run asynchronously on a thread pool thread, the thread that creates and starts the task continues execution as soon as the task has been instantiated. In some cases, when the calling thread is the main application thread, the app may terminate before the task actually begins execution. In others, your application's logic may require that the calling thread continue execution only when one or more tasks have completed execution. You can synchronize the execution of the calling thread and the asynchronous tasks it launches by calling a `Wait` method to wait for one or more tasks to complete.
123123
124124
To wait for a single task to complete, you can call its <xref:System.Threading.Tasks.Task.Wait%2A?displayProperty=nameWithType> method. A call to the <xref:System.Threading.Tasks.Task.Wait%2A> method blocks the calling thread until the single class instance has completed execution.
125125
@@ -135,7 +135,7 @@
135135
136136
You can also supply a cancellation token by calling the <xref:System.Threading.Tasks.Task.Wait%28System.Threading.CancellationToken%29> and <xref:System.Threading.Tasks.Task.Wait%28System.Int32%2CSystem.Threading.CancellationToken%29> methods. If the token's <xref:System.Threading.CancellationToken.IsCancellationRequested%2A> property is `true` or becomes `true` while the <xref:System.Threading.Tasks.Task.Wait%2A> method is executing, the method throws an <xref:System.OperationCanceledException>.
137137
138-
In some cases, you may want to wait for the first of a series of executing tasks to complete, but don't care which task it is. For this purpose, you can call one of the overloads of the <xref:System.Threading.Tasks.Task.WaitAny%2A?displayProperty=nameWithType> method. The following example creates three tasks, each of which sleeps for an interval determine by a random number generator. The <xref:System.Threading.Tasks.Task.WaitAny%28System.Threading.Tasks.Task%5B%5D%29> method waits for the first task to complete. The example then displays information about the status of all three tasks.
138+
In some cases, you may want to wait for the first of a series of executing tasks to complete, but don't care which task it is. For this purpose, you can call one of the overloads of the <xref:System.Threading.Tasks.Task.WaitAny%2A?displayProperty=nameWithType> method. The following example creates three tasks, each of which sleeps for an interval determined by a random number generator. The <xref:System.Threading.Tasks.Task.WaitAny%28System.Threading.Tasks.Task%5B%5D%29> method waits for the first task to complete. The example then displays information about the status of all three tasks.
139139
140140
[!code-csharp[System.Threading.Tasks.Task#10](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.threading.tasks.task/cs/WhenAny1.cs#10)]
141141
[!code-vb[System.Threading.Tasks.Task#10](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.threading.tasks.task/vb/WaitAny1.vb#10)]

xml/System.Threading.Tasks/ValueTask.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ Using a `ValueTask` instead of a <xref:System.Threading.Tasks.Task> introduces s
6464
6565
> [!NOTE]
6666
> The use of the `ValueTask` type is supported starting with C# 7.0 and is not supported by any version of Visual Basic.
67+
68+
> [!NOTE]
69+
> An instance created with the parameterless constructor or by the `default(ValueTask)` syntax (a zero-initialized structure) represents a synchronously, successfully completed operation.
70+
6771
]]></format>
6872
</remarks>
6973
</Docs>

xml/System.Threading.Tasks/ValueTask`1.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ As such, the default choice for any asynchronous method should be to return a <x
7777
7878
> [!NOTE]
7979
> The use of the <xref:System.Threading.Tasks.ValueTask%601> type is supported starting with C# 7.0, and is not supported by any version of Visual Basic.
80+
81+
> [!NOTE]
82+
> An instance created with the parameterless constructor or by the `default(ValueTask<TResult>)` syntax (a zero-initialized structure) represents a synchronously, successfully completed operation with a result of `default(TResult)`.
83+
8084
]]></format>
8185
</remarks>
8286
</Docs>

0 commit comments

Comments
 (0)