Skip to content

Commit b2b4e92

Browse files
Merge pull request #45499 from dotnet/main
Merge main into live
2 parents bb73ba6 + 766eb70 commit b2b4e92

File tree

34 files changed

+95
-92
lines changed

34 files changed

+95
-92
lines changed

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ jobs:
7171

7272
# Upload the results to GitHub's code scanning dashboard.
7373
- name: "Upload to code-scanning"
74-
uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
74+
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
7575
with:
7676
sarif_file: results.sarif

docs/ai/semantic-kernel-dotnet-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ string memoryCollectionName = "SummarizedAzureDocs";
202202
foreach (var fact in facts) {
203203
await memoryBuilder.SaveReferenceAsync(
204204
collection: memoryCollectionName,
205-
description: fact.Key.Split(";")[1].Trim(),
205+
description: fact.Key.Split(";")[0].Trim(),
206206
text: fact.Value,
207-
externalId: fact.Key.Split(";")[2].Trim(),
207+
externalId: fact.Key.Split(";")[1].Trim(),
208208
externalSourceName: "Azure Documentation"
209209
);
210210
}

docs/azure/sdk/snippets/aspnetcore-guidance/BlazorSample/BlazorSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.18.4" />
1111
<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.7.0" />
1212
<PackageReference Include="Azure.Storage.Blobs" Version="12.24.0" />
13-
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.10.0" />
13+
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.11.0" />
1414
</ItemGroup>
1515

1616
</Project>

docs/azure/sdk/snippets/pagination/pagination.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.7.0" />
13-
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.10.0" />
13+
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.11.0" />
1414
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.3" />
1515
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
1616
</ItemGroup>

docs/core/diagnostics/lldb-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To install the LLDB packages:
4949

5050
```console
5151
apk update
52-
apk add lldb
52+
apk add lldb py3-lldb
5353
```
5454

5555
To launch LLDB:

docs/core/tools/dotnet-test.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Some examples of the `dotnet.config` file:
2525
name = "VSTest"
2626
```
2727

28-
## VSTest and Microsoft Testing Platform (MTP)
28+
## VSTest and Microsoft.Testing.Platform (MTP)
2929

3030
### [dotnet test with VSTest](#tab/dotnet-test-with-vstest)
3131

@@ -441,14 +441,18 @@ dotnet test -h|--help
441441
With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest. The test-related arguments are no longer fixed, as they are tied to the registered extensions in the test project(s). Moreover, MTP supports a globbing filter when running tests. For more information, see [Microsoft.Testing.Platform](../testing/microsoft-testing-platform-intro.md).
442442

443443
> [!WARNING]
444-
> `dotnet test` doesn't run in environments that have test projects using both VSTest and Microsoft Testing Platform in the same solution, as the two platforms are mutually incompatible.
444+
> When Microsoft.Testing.Platform is opted in via `dotnet.config`, `dotnet test` expects all test projects to use Microsoft.Testing.Platform. It is an error if any of the test projects use VSTest.
445445
446446
#### Implicit restore
447447

448448
[!INCLUDE[dotnet restore note](~/includes/dotnet-restore-note.md)]
449449

450450
#### Options
451451

452+
> [!NOTE]
453+
> You can use only one of the following options at a time: `--project`, `--solution`, `--directory`, or `--test-modules`. These options can't be combined.
454+
> In addition, when using `--test-modules`, you can't specify `--arch`, `--configuration`, `--framework`, `--os`, or `--runtime`. These options are not relevant for an already-built module.
455+
452456
- **`--project <PROJECT_PATH>`**
453457

454458
Specifies the path to the test project.
@@ -461,9 +465,6 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
461465

462466
Specifies the path to a directory that contains a project or a solution.
463467

464-
> [!NOTE]
465-
> You can use only one of the following options at a time: `--project`, `--solution`, or `--directory`. These options can't be combined.
466-
467468
- **`--test-modules <EXPRESSION>`**
468469

469470
Filters test modules using file globbing in .NET. Only tests belonging to those test modules will run. For more information and examples on how to use file globbing in .NET, see [File globbing](../../../docs/core/extensions/file-globbing.md).
@@ -533,14 +534,17 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
533534

534535
- **`args`**
535536

536-
Specifies extra arguments to pass to the test application(s). Use a space to separate multiple arguments. For more information and examples on what to pass, see [Microsoft Testing Platform](../../../docs/core/testing/microsoft-testing-platform-intro.md) and [Microsoft.Testing.Platform extensions](../../../docs/core/testing/microsoft-testing-platform-extensions.md).
537+
Specifies extra arguments to pass to the test application(s). Use a space to separate multiple arguments. For more information and examples on what to pass, see [Microsoft.Testing.Platform overview](../../../docs/core/testing/microsoft-testing-platform-intro.md) and [Microsoft.Testing.Platform extensions](../../../docs/core/testing/microsoft-testing-platform-extensions.md).
538+
539+
> [!TIP]
540+
> To specify extra arguments for specific projects, use the `TestingPlatformCommandLineArguments` MSBuild property.
537541
538542
> [!NOTE]
539543
> To enable trace logging to a file, use the environment variable `DOTNET_CLI_TEST_TRACEFILE` to provide the path to the trace file.
540544
541545
#### Examples
542546

543-
- Run the tests in the project in the current directory:
547+
- Run the tests in the project or solution in the current directory:
544548

545549
```dotnetcli
546550
dotnet test
@@ -558,7 +562,7 @@ With Microsoft Testing Platform, `dotnet test` operates faster than with VSTest.
558562
dotnet test --solution ./TestProjects/TestProjects.sln
559563
```
560564

561-
- Run the tests in the `TestProjects` directory:
565+
- Run the tests in a solution or project that can be found in the `TestProjects` directory:
562566

563567
```dotnetcli
564568
dotnet test --directory ./TestProjects

docs/csharp/advanced-topics/expression-trees/snippets/InterpretExpressions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Linq.Expressions;
1+
using System.Linq.Expressions;
22
public static class InterpretExpressions
33
{
44
public static void ParseExpression()
@@ -16,8 +16,7 @@ public static void ParseExpression()
1616
ParameterExpression left = (ParameterExpression)operation.Left;
1717
ConstantExpression right = (ConstantExpression)operation.Right;
1818

19-
Console.WriteLine("Decomposed expression: {0} => {1} {2} {3}",
20-
param.Name, left.Name, operation.NodeType, right.Value);
19+
Console.WriteLine($"Decomposed expression: {param.Name} => {left.Name} {operation.NodeType} {right.Value}");
2120

2221
// This code produces the following output:
2322

docs/csharp/advanced-topics/reflection-and-attributes/snippets/conceptual/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// See https://aka.ms/new-console-template for more information
1+
// See https://aka.ms/new-console-template for more information
22

33

44
using System.Reflection;
@@ -35,10 +35,10 @@ from method in type.GetMethods()
3535

3636
foreach (var groupOfMethods in pubTypesQuery)
3737
{
38-
Console.WriteLine("Type: {0}", groupOfMethods.Key);
38+
Console.WriteLine($"Type: {groupOfMethods.Key}");
3939
foreach (var method in groupOfMethods)
4040
{
41-
Console.WriteLine(" {0}", method);
41+
Console.WriteLine($" {method}");
4242
}
4343
}
4444
// </QueryReflection>

docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.RegularExpressions;
1+
using System.Text.RegularExpressions;
22
using System.Windows;
33
using Microsoft.AspNetCore.Mvc;
44

@@ -111,7 +111,7 @@ private static void Download(string URL)
111111

112112
private static void DoSomethingWithData(object stringData)
113113
{
114-
Console.WriteLine("Displaying data: ", stringData);
114+
Console.WriteLine($"Displaying data: {stringData}");
115115
}
116116

117117
// <GetUsersForDataset>

docs/csharp/fundamentals/coding-style/snippets/coding-conventions/program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text;
1+
using System.Text;
22

33
namespace Coding_Conventions_Examples
44
{
@@ -32,7 +32,7 @@ public static void DelegateExamples()
3232

3333
public static void DelMethod(string str)
3434
{
35-
Console.WriteLine("DelMethod argument: {0}", str);
35+
Console.WriteLine($"DelMethod argument: {str}");
3636
}
3737
//</snippet14b>
3838

@@ -174,7 +174,7 @@ static void Main(string[] args)
174174

175175
if ((divisor != 0) && (dividend / divisor) is var result)
176176
{
177-
Console.WriteLine("Quotient: {0}", result);
177+
Console.WriteLine($"Quotient: {result}");
178178
}
179179
else
180180
{

0 commit comments

Comments
 (0)