Skip to content

Commit

Permalink
Merge pull request #41920 from dotnet/main
Browse files Browse the repository at this point in the history
Merge main into live
  • Loading branch information
dotnet-policy-service[bot] authored Jul 27, 2024
2 parents 334e383 + 85b928a commit b5c406f
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 15 deletions.
6 changes: 3 additions & 3 deletions docs/azure/sdk/azure-sdk-for-dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ title: Azure SDK for .NET Overview
description: Provides an overview of what the Azure SDK for .NET is and the basic steps to use the SDK in a .NET application
ms.topic: conceptual
ms.custom: devx-track-dotnet, engagement-fy23
ms.date: 3/23/2023
ms.date: 07/26/2024
---

# Azure SDK for .NET overview

## What is the Azure SDK for .NET

The **Azure SDK for .NET** is designed to make it easy to use Azure services from your .NET applications. Whether it is uploading and downloading files to Blob Storage, retrieving application secrets from Azure Key Vault, or processing notifications from Azure Event Hubs, the Azure SDK for .NET provides a consistent and familiar interface to access Azure services.
The **Azure SDK for .NET** is designed to make it easy to use Azure services from your .NET applications. Whether it's uploading and downloading files to Blob Storage, retrieving application secrets from Azure Key Vault, or processing notifications from Azure Event Hubs, the Azure SDK for .NET provides a consistent and familiar interface to access Azure services.

The Azure SDK for .NET is available as series of NuGet packages that can be used in both .NET Core (2.1 and higher) and .NET Framework (4.7.2 and higher) applications.
The Azure SDK for .NET is a collection of NuGet packages that can be used in applications targeting .NET variants that implement [.NET Standard 2.0](/dotnet/standard/net-standard?tabs=net-standard-2-0#select-net-standard-version).

:::image type="content" source="./media/azure-sdk-for-dotnet-overview.png" alt-text="Diagram showing how .NET applications use the Azure SDK to access Azure services.":::

Expand Down
2 changes: 1 addition & 1 deletion docs/core/extensions/dependency-injection-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Next, create an _IGreetingService.cs_ file and add the following C# code:

:::code source="snippets/di/di-basics/IGreetingService.cs":::

Then add a new C# file named _DeafultGreetingService.cs_ and add the following code:
Then add a new C# file named DefaultGreetingService.cs_ and add the following code:

:::code source="snippets/di/di-basics/DefaultGreetingService.cs":::

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The type declaring these methods should also respect the following rules:

- The type should be a `class`.
- The `class` should be `public` or `internal` (if the test project is using the `[DiscoverInternals]` attribute).
- The `class` shouldn't be `static`.
- If the `class` is `sealed`, it should be marked with `[TestClass]` (or a derived attribute).
2 changes: 2 additions & 0 deletions docs/core/testing/mstest-analyzers/mstest0008.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Methods marked with `[TestInitialize]` should follow the following layout to be
- it should not take any parameter
- return type should be `void`, `Task` or `ValueTask`

[!INCLUDE [test-class-rules](includes/test-class-rules.md)]

## How to fix violations

Ensure that the method matches the layout described above.
Expand Down
2 changes: 2 additions & 0 deletions docs/core/testing/mstest-analyzers/mstest0009.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Methods marked with `[TestCleanup]` should follow the following layout to be val
- it should not take any parameter
- return type should be `void`, `Task` or `ValueTask`

[!INCLUDE [test-class-rules](includes/test-class-rules.md)]

## How to fix violations

Ensure that the method matches the layout described above.
Expand Down
4 changes: 4 additions & 0 deletions docs/core/testing/mstest-analyzers/mstest0010.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Methods marked with `[ClassInitialize]` should follow the following layout to be
- it should take one parameter of type `TestContext`
- return type should be `void`, `Task` or `ValueTask`

[!INCLUDE [test-class-rules](includes/test-class-rules.md)]

- the class should not be generic

## How to fix violations

Ensure that the method matches the layout described above.
Expand Down
4 changes: 4 additions & 0 deletions docs/core/testing/mstest-analyzers/mstest0011.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Methods marked with `[ClassCleanup]` should follow the following layout to be va
- it should not take any parameter
- return type should be `void`, `Task` or `ValueTask`

[!INCLUDE [test-class-rules](includes/test-class-rules.md)]

- the class should not be generic

## How to fix violations

Ensure that the method matches the layout described above.
Expand Down
4 changes: 4 additions & 0 deletions docs/core/testing/mstest-analyzers/mstest0012.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Methods marked with `[AssemblyInitialize]` should follow the following layout to
- it should take one parameter of type `TestContext`
- return type should be `void`, `Task` or `ValueTask`

[!INCLUDE [test-class-rules](includes/test-class-rules.md)]

- the class should not be generic

## How to fix violations

Ensure that the method matches the layout described above.
Expand Down
4 changes: 4 additions & 0 deletions docs/core/testing/mstest-analyzers/mstest0013.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Methods marked with `[AssemblyCleanup]` should follow the following layout to be
- it should not take any parameter
- return type should be `void`, `Task` or `ValueTask`

[!INCLUDE [test-class-rules](includes/test-class-rules.md)]

- the class should not be generic

## How to fix violations

Ensure that the method matches the layout described above.
Expand Down
4 changes: 2 additions & 2 deletions docs/core/testing/mstest-analyzers/mstest0029.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ ms.author: enjieid

## Cause

A Public method should be a test method.
A `public` method should be a test method.

## Rule description

A Public method should be a test method (marked with `[TestMethod]`).
A `public` method of a class marked with `[TestClass]` should be a test method (marked with `[TestMethod]`). The rule ignores methods that are marked with `[TestInitialize]`, or `[TestCleanup]` attributes.

## How to fix violations

Expand Down
2 changes: 1 addition & 1 deletion docs/core/testing/mstest-analyzers/mstest0030.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ms.author: enjieid

## Cause

Type contaning `[TestMethod]` should be marked with `[TestClass]`, otherwise the test method will be silently ignored.
Type containing `[TestMethod]` should be marked with `[TestClass]`, otherwise the test method will be silently ignored.

## Rule description

Expand Down
16 changes: 12 additions & 4 deletions docs/core/testing/unit-testing-platform-integration-dotnet-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,19 @@ By default, VSTest is used to run `Microsoft.Testing.Platform` tests. You can en
</Project>
```

In this mode, additional parameters to the run aren't provided directly through the command line. They need to be provided as an MSBuild property named `TestingPlatformCommandLineArguments`:
In this mode, you can supply extra parameters that will be utilized to call the testing application as follows:

```dotnetcli
dotnet test -p:TestingPlatformCommandLineArguments=" --minimum-expected-tests 10 "
```
1. Beginning with `Microsoft.Testing.Platform` version 1.4 (included with MSTest version 3.6), options can be added after the double dash `--`:

```dotnetcli
dotnet test -- --minimum-expected-tests 10
```

1. By using the `TestingPlatformCommandLineArguments` MSBuild property:

```dotnetcli
dotnet test -p:TestingPlatformCommandLineArguments=" --minimum-expected-tests 10 "
```

## Additional MSBuild options

Expand Down
2 changes: 1 addition & 1 deletion docs/core/tools/dotnet-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotnet format -h|--help

## Description

`dotnet format` is a code formatter that applies style preferences to a project or solution. Preferences will be read from an *.editorconfig* file, if present, otherwise a default set of preferences will be used. For more information, see the [EditorConfig documentation](../../fundamentals/code-analysis/configuration-files.md#editorconfig).
`dotnet format` is a code formatter that applies style preferences and static analysis recommendations to a project or solution. Preferences will be read from an *.editorconfig* file, if present, otherwise a default set of preferences will be used. For more information, see the [EditorConfig documentation](../../fundamentals/code-analysis/configuration-files.md#editorconfig).

## Arguments

Expand Down
2 changes: 1 addition & 1 deletion docs/core/tools/dotnet-nuget-add-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The `dotnet nuget add source` command adds a new package source to your NuGet co

- **`--allow-insecure-connections`**

Allows HTTP connections for adding or updating packages. This method is not secure.
Allows HTTP connections for adding or updating packages. This method is not secure. Available since .NET 9 SDK.

- **`-n|--name <SOURCE_NAME>`**

Expand Down
2 changes: 1 addition & 1 deletion docs/framework/install/on-server-2019.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ms.date: 06/27/2024
.NET Framework 4.8 is the last supported version of .NET Framework for Windows Server 2019.

> [!div class="button"]
> [Download .NET Framework 4.8.1](https://dotnet.microsoft.com/download/dotnet-framework/net481)
> [Download .NET Framework 4.8](https://dotnet.microsoft.com/download/dotnet-framework/net48)
## .NET Framework 3.5

Expand Down
4 changes: 3 additions & 1 deletion docs/standard/commandline/get-started-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ You can use any of the following ways to test while developing a command-line ap
* Use `dotnet run` and pass option values to the app instead of to the `run` command by including them after `--`, as in the following example:

```dotnetcli
dotnet run -- --file scl.runtimeconfig.json
dotnet run -- --file bin/Debug/net6.0/scl.runtimeconfig.json
```

The working directory is the project folder (the folder that has the .csproj file), so the relative path to `scl.runtimeconfig.json` is from the project folder.

In .NET 7.0.100 SDK Preview, you can use the `commandLineArgs` of a *launchSettings.json* file by running the command `dotnet run --launch-profile <profilename>`.

* [Publish the project to a folder](../../core/tutorials/publishing-with-visual-studio-code.md), open a command prompt to that folder, and run the executable:
Expand Down

0 comments on commit b5c406f

Please sign in to comment.