From dd4da96d4df96f29f2513a6b7dc2c7fedeea6ab1 Mon Sep 17 00:00:00 2001 From: lindexi Date: Mon, 7 Jul 2025 20:53:50 +0800 Subject: [PATCH 1/6] Fix property value errors (#47082) The argument in AppHostDotNetSearch should be `EnvironmentVariable` not `EnvironmentVariables`. --- docs/core/deploying/deploy-with-cli.md | 2 +- docs/core/project-sdk/msbuild-props.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/deploying/deploy-with-cli.md b/docs/core/deploying/deploy-with-cli.md index 7485645b780f2..d7cc3a234dd4f 100644 --- a/docs/core/deploying/deploy-with-cli.md +++ b/docs/core/deploying/deploy-with-cli.md @@ -137,7 +137,7 @@ In .NET 9 and later versions, you can configure the .NET installation search pat - `AppLocal`: app executable's folder - `AppRelative`: path relative to the app executable -- `EnvironmentVariables`: value of [`DOTNET_ROOT[_]`](../tools/dotnet-environment-variables.md#dotnet_root-dotnet_rootx86-dotnet_root_x86-dotnet_root_x64) environment variables +- `EnvironmentVariable`: value of [`DOTNET_ROOT[_]`](../tools/dotnet-environment-variables.md#dotnet_root-dotnet_rootx86-dotnet_root_x86-dotnet_root_x64) environment variables - `Global`: [registered](https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md#global-install-to-custom-location) and [default](https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md#global-install-to-default-location) global install locations `AppHostRelativeDotNet` specifies the path relative to the executable that will be searched when `AppHostDotNetSearch` contains `AppRelative`. diff --git a/docs/core/project-sdk/msbuild-props.md b/docs/core/project-sdk/msbuild-props.md index 729c8ff0e4457..bd48289d5e702 100644 --- a/docs/core/project-sdk/msbuild-props.md +++ b/docs/core/project-sdk/msbuild-props.md @@ -1628,7 +1628,7 @@ The following table lists valid values. You can specify multiple values, separat | --- | --- | | `AppLocal` | App executable's folder | | `AppRelative` | Path relative to the app executable as specified by [AppHostRelativeDotNet](#apphostrelativedotnet) | -| `EnvironmentVariables` | Value of [`DOTNET_ROOT[_]`](../tools/dotnet-environment-variables.md#dotnet_root-dotnet_rootx86-dotnet_root_x86-dotnet_root_x64) environment variables | +| `EnvironmentVariable` | Value of [`DOTNET_ROOT[_]`](../tools/dotnet-environment-variables.md#dotnet_root-dotnet_rootx86-dotnet_root_x86-dotnet_root_x64) environment variables | | `Global` | [Registered](https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md#global-install-to-custom-location) and [default](https://github.com/dotnet/designs/blob/main/accepted/2020/install-locations.md#global-install-to-default-location) global install locations | This property was introduced in .NET 9. From 8a98dcec41570169761f8a6df582538e47060982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Mon, 7 Jul 2025 14:54:34 +0200 Subject: [PATCH 2/6] Document Http3Support feature switch (#47084) * Document Http3Support feature switch Adds documentation for https://github.com/dotnet/sdk/pull/49564. * Update trimming-options.md --- docs/core/deploying/trimming/trimming-options.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/deploying/trimming/trimming-options.md b/docs/core/deploying/trimming/trimming-options.md index 1f31862a6377f..d5968c53e6b77 100644 --- a/docs/core/deploying/trimming/trimming-options.md +++ b/docs/core/deploying/trimming/trimming-options.md @@ -71,6 +71,7 @@ Several feature areas of the framework libraries come with trimmer directives th | `EnableUnsafeBinaryFormatterSerialization` | When set to `false`, removes BinaryFormatter serialization support. For more information, see [BinaryFormatter serialization methods are obsolete](../../compatibility/serialization/5.0/binaryformatter-serialization-obsolete.md) and [In-box BinaryFormatter implementation removed and always throws](../../compatibility/serialization/9.0/binaryformatter-removal.md). | | `EnableUnsafeUTF7Encoding` | When set to `false`, removes insecure UTF-7 encoding code. For more information, see [UTF-7 code paths are obsolete](../../compatibility/core-libraries/5.0/utf-7-code-paths-obsolete.md). | | `EventSourceSupport` | When set to `false`, removes EventSource-related code and logic. | +| `Http3Support` (.NET 10+) | When set to `false`, removes code related to support for HTTP/3 in . | | `HttpActivityPropagationSupport` | When set to `false`, removes code related to diagnostics support for . | | `InvariantGlobalization` | When set to `true`, removes globalization-specific code and data. For more information, see [Invariant mode](../../runtime-config/globalization.md#invariant-mode). | | `MetadataUpdaterSupport` | When set to `false`, removes metadata update–specific logic related to hot reload. | From 92454c80308ea671886a5841946a2b940676ff30 Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Mon, 7 Jul 2025 14:59:26 +0200 Subject: [PATCH 3/6] Add an example of using `UnscopedRefAttribute` to fix CS8170 (#47078) * Add an example of using UnscopedRefAttribute to fix CS8170 * Use ref when assigning result of M to d var * Warn for being sure about safety of leaving the scope by ref --- .../compiler-messages/cs8170.md | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/compiler-messages/cs8170.md b/docs/csharp/language-reference/compiler-messages/cs8170.md index 660b91c6fd8b1..56c0d5bfdd24a 100644 --- a/docs/csharp/language-reference/compiler-messages/cs8170.md +++ b/docs/csharp/language-reference/compiler-messages/cs8170.md @@ -35,7 +35,7 @@ public class Other public void Method() { var p = new Program(); - var d = p.M(); + ref int d = ref p.M(); } } ``` @@ -83,3 +83,31 @@ public class Other } } ``` + +Another approach is to use the attribute. It will mark the reference to be allowed to escape the scope.
+Use this only when you know that it is safe for the reference to leave the scope. +Below is the example of applying to `int M()` method, which fixes the CS8170: + +```csharp +using System.Diagnostics.CodeAnalysis; + +struct Program +{ + public int d; + + [UnscopedRef] + public ref int M() + { + return ref d; // No error - ref is valid to escape the scope in this line of that method + } +} + +public class Other +{ + public void Method() + { + var p = new Program(); + ref int d = ref p.M(); + } +} +``` From 2c15728c896e692b5403ce4cba754e2c50eeaf86 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 7 Jul 2025 05:59:39 -0700 Subject: [PATCH 4/6] Update package index with latest published versions (#47103) --- docs/azure/includes/dotnet-all.md | 4 ++-- docs/azure/includes/dotnet-new.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/azure/includes/dotnet-all.md b/docs/azure/includes/dotnet-all.md index fe91556da02c1..238d4bf7772df 100644 --- a/docs/azure/includes/dotnet-all.md +++ b/docs/azure/includes/dotnet-all.md @@ -181,7 +181,7 @@ | Resource Management - App Configuration | NuGet [1.4.0](https://www.nuget.org/packages/Azure.ResourceManager.AppConfiguration/1.4.0) | [docs](/dotnet/api/overview/azure/ResourceManager.AppConfiguration-readme) | GitHub [1.4.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.AppConfiguration_1.4.0/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/) | | Resource Management - App Service | NuGet [1.4.0](https://www.nuget.org/packages/Azure.ResourceManager.AppService/1.4.0) | [docs](/dotnet/api/overview/azure/ResourceManager.AppService-readme) | GitHub [1.4.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.AppService_1.4.0/sdk/websites/Azure.ResourceManager.AppService/) | | Resource Management - Application Insights | NuGet [1.0.1](https://www.nuget.org/packages/Azure.ResourceManager.ApplicationInsights/1.0.1) | [docs](/dotnet/api/overview/azure/ResourceManager.ApplicationInsights-readme) | GitHub [1.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ApplicationInsights_1.0.1/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/) | -| Resource Management - Arizeaiobservabilityeval | NuGet [1.0.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.ArizeAIObservabilityEval/1.0.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.ArizeAIObservabilityEval-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ArizeAIObservabilityEval_1.0.0-beta.1/sdk/arizeaiobservabilityeval/Azure.ResourceManager.ArizeAIObservabilityEval/) | +| Resource Management - Arizeaiobservabilityeval | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.ArizeAIObservabilityEval/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.ArizeAIObservabilityEval-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ArizeAIObservabilityEval_1.0.0/sdk/arizeaiobservabilityeval/Azure.ResourceManager.ArizeAIObservabilityEval/) | | Resource Management - Astro | NuGet [1.0.0-beta.2](https://www.nuget.org/packages/Azure.ResourceManager.Astro/1.0.0-beta.2) | [docs](/dotnet/api/overview/azure/ResourceManager.Astro-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Astro_1.0.0-beta.2/sdk/astronomer/Azure.ResourceManager.Astro/) | | Resource Management - Attestation | NuGet [1.0.0-beta.5](https://www.nuget.org/packages/Azure.ResourceManager.Attestation/1.0.0-beta.5) | [docs](/dotnet/api/overview/azure/ResourceManager.Attestation-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.5](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Attestation_1.0.0-beta.5/sdk/attestation/Azure.ResourceManager.Attestation/) | | Resource Management - Authorization | NuGet [1.1.4](https://www.nuget.org/packages/Azure.ResourceManager.Authorization/1.1.4) | [docs](/dotnet/api/overview/azure/ResourceManager.Authorization-readme) | GitHub [1.1.4](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Authorization_1.1.4/sdk/authorization/Azure.ResourceManager.Authorization/) | @@ -195,7 +195,7 @@ | Resource Management - Billing Benefits | NuGet [1.0.0-beta.4](https://www.nuget.org/packages/Azure.ResourceManager.BillingBenefits/1.0.0-beta.4) | [docs](/dotnet/api/overview/azure/ResourceManager.BillingBenefits-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.4](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.BillingBenefits_1.0.0-beta.4/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/) | | Resource Management - Blueprint | NuGet [1.0.0-beta.5](https://www.nuget.org/packages/Azure.ResourceManager.Blueprint/1.0.0-beta.5) | [docs](/dotnet/api/overview/azure/ResourceManager.Blueprint-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.5](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Blueprint_1.0.0-beta.5/sdk/blueprint/Azure.ResourceManager.Blueprint/) | | Resource Management - Bot Service | NuGet [1.1.1](https://www.nuget.org/packages/Azure.ResourceManager.BotService/1.1.1) | [docs](/dotnet/api/overview/azure/ResourceManager.BotService-readme) | GitHub [1.1.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.BotService_1.1.1/sdk/botservice/Azure.ResourceManager.BotService/) | -| Resource Management - Carbonoptimization | NuGet [1.0.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.CarbonOptimization/1.0.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.CarbonOptimization-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.CarbonOptimization_1.0.0-beta.1/sdk/carbon/Azure.ResourceManager.CarbonOptimization/) | +| Resource Management - Carbonoptimization | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.CarbonOptimization/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.CarbonOptimization-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.CarbonOptimization_1.0.0/sdk/carbon/Azure.ResourceManager.CarbonOptimization/) | | Resource Management - Change Analysis | NuGet [1.1.1](https://www.nuget.org/packages/Azure.ResourceManager.ChangeAnalysis/1.1.1) | [docs](/dotnet/api/overview/azure/ResourceManager.ChangeAnalysis-readme) | GitHub [1.1.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ChangeAnalysis_1.1.1/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/) | | Resource Management - Chaos | NuGet [1.1.0](https://www.nuget.org/packages/Azure.ResourceManager.Chaos/1.1.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Chaos-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Chaos_1.1.0/sdk/chaos/Azure.ResourceManager.Chaos/) | | Resource Management - Cloudhealth | NuGet [1.0.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.CloudHealth/1.0.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.CloudHealth-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.CloudHealth_1.0.0-beta.1/sdk/cloudhealth/Azure.ResourceManager.CloudHealth/) | diff --git a/docs/azure/includes/dotnet-new.md b/docs/azure/includes/dotnet-new.md index 97ec383390aeb..33148ce000aeb 100644 --- a/docs/azure/includes/dotnet-new.md +++ b/docs/azure/includes/dotnet-new.md @@ -188,7 +188,7 @@ | Resource Management - App Service | NuGet [1.4.0](https://www.nuget.org/packages/Azure.ResourceManager.AppService/1.4.0) | [docs](/dotnet/api/overview/azure/ResourceManager.AppService-readme) | GitHub [1.4.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.AppService_1.4.0/sdk/websites/Azure.ResourceManager.AppService/) | | Resource Management - Application Insights | NuGet [1.0.1](https://www.nuget.org/packages/Azure.ResourceManager.ApplicationInsights/1.0.1) | [docs](/dotnet/api/overview/azure/ResourceManager.ApplicationInsights-readme) | GitHub [1.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ApplicationInsights_1.0.1/sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/) | | Resource Management - Arc ScVmm | NuGet [1.0.0-beta.4](https://www.nuget.org/packages/Azure.ResourceManager.ArcScVmm/1.0.0-beta.4) | [docs](/dotnet/api/overview/azure/ResourceManager.ArcScVmm-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.4](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ArcScVmm_1.0.0-beta.4/sdk/arc-scvmm/Azure.ResourceManager.ArcScVmm/) | -| Resource Management - Arizeaiobservabilityeval | NuGet [1.0.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.ArizeAIObservabilityEval/1.0.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.ArizeAIObservabilityEval-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ArizeAIObservabilityEval_1.0.0-beta.1/sdk/arizeaiobservabilityeval/Azure.ResourceManager.ArizeAIObservabilityEval/) | +| Resource Management - Arizeaiobservabilityeval | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.ArizeAIObservabilityEval/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.ArizeAIObservabilityEval-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ArizeAIObservabilityEval_1.0.0/sdk/arizeaiobservabilityeval/Azure.ResourceManager.ArizeAIObservabilityEval/) | | Resource Management - Astro | NuGet [1.0.0-beta.2](https://www.nuget.org/packages/Azure.ResourceManager.Astro/1.0.0-beta.2) | [docs](/dotnet/api/overview/azure/ResourceManager.Astro-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Astro_1.0.0-beta.2/sdk/astronomer/Azure.ResourceManager.Astro/) | | Resource Management - Attestation | NuGet [1.0.0-beta.5](https://www.nuget.org/packages/Azure.ResourceManager.Attestation/1.0.0-beta.5) | [docs](/dotnet/api/overview/azure/ResourceManager.Attestation-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.5](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Attestation_1.0.0-beta.5/sdk/attestation/Azure.ResourceManager.Attestation/) | | Resource Management - Authorization | NuGet [1.1.4](https://www.nuget.org/packages/Azure.ResourceManager.Authorization/1.1.4) | [docs](/dotnet/api/overview/azure/ResourceManager.Authorization-readme) | GitHub [1.1.4](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Authorization_1.1.4/sdk/authorization/Azure.ResourceManager.Authorization/) | @@ -202,7 +202,7 @@ | Resource Management - Billing Benefits | NuGet [1.0.0-beta.4](https://www.nuget.org/packages/Azure.ResourceManager.BillingBenefits/1.0.0-beta.4) | [docs](/dotnet/api/overview/azure/ResourceManager.BillingBenefits-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.4](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.BillingBenefits_1.0.0-beta.4/sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/) | | Resource Management - Blueprint | NuGet [1.0.0-beta.5](https://www.nuget.org/packages/Azure.ResourceManager.Blueprint/1.0.0-beta.5) | [docs](/dotnet/api/overview/azure/ResourceManager.Blueprint-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.5](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Blueprint_1.0.0-beta.5/sdk/blueprint/Azure.ResourceManager.Blueprint/) | | Resource Management - Bot Service | NuGet [1.1.1](https://www.nuget.org/packages/Azure.ResourceManager.BotService/1.1.1) | [docs](/dotnet/api/overview/azure/ResourceManager.BotService-readme) | GitHub [1.1.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.BotService_1.1.1/sdk/botservice/Azure.ResourceManager.BotService/) | -| Resource Management - Carbonoptimization | NuGet [1.0.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.CarbonOptimization/1.0.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.CarbonOptimization-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.CarbonOptimization_1.0.0-beta.1/sdk/carbon/Azure.ResourceManager.CarbonOptimization/) | +| Resource Management - Carbonoptimization | NuGet [1.0.0](https://www.nuget.org/packages/Azure.ResourceManager.CarbonOptimization/1.0.0) | [docs](/dotnet/api/overview/azure/ResourceManager.CarbonOptimization-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.CarbonOptimization_1.0.0/sdk/carbon/Azure.ResourceManager.CarbonOptimization/) | | Resource Management - Change Analysis | NuGet [1.1.1](https://www.nuget.org/packages/Azure.ResourceManager.ChangeAnalysis/1.1.1) | [docs](/dotnet/api/overview/azure/ResourceManager.ChangeAnalysis-readme) | GitHub [1.1.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.ChangeAnalysis_1.1.1/sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/) | | Resource Management - Chaos | NuGet [1.1.0](https://www.nuget.org/packages/Azure.ResourceManager.Chaos/1.1.0) | [docs](/dotnet/api/overview/azure/ResourceManager.Chaos-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.Chaos_1.1.0/sdk/chaos/Azure.ResourceManager.Chaos/) | | Resource Management - Cloudhealth | NuGet [1.0.0-beta.1](https://www.nuget.org/packages/Azure.ResourceManager.CloudHealth/1.0.0-beta.1) | [docs](/dotnet/api/overview/azure/ResourceManager.CloudHealth-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.ResourceManager.CloudHealth_1.0.0-beta.1/sdk/cloudhealth/Azure.ResourceManager.CloudHealth/) | From 75083e5d4e135cf6a792e9034ba64acf30da8bdf Mon Sep 17 00:00:00 2001 From: Nikita Balabaev Date: Mon, 7 Jul 2025 20:00:39 +0700 Subject: [PATCH 5/6] Update source2.cs (#47114) --- .../system.Threading.ThreadStart2/CS/source2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.ThreadStart2/CS/source2.cs b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.ThreadStart2/CS/source2.cs index 0e301ad78a29a..20a31259e7461 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.ThreadStart2/CS/source2.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.ThreadStart2/CS/source2.cs @@ -48,7 +48,7 @@ public static void Main() + "starting the new InstanceCaller thread."); // Create the thread object, passing in the - // serverObject.StaticMethod method using a + // ServerClass.StaticMethod method using a // ThreadStart delegate. Thread StaticCaller = new(new ThreadStart(ServerClass.StaticMethod)); From 7f30eb519228966fb884247c603bbe9eaaba5139 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Mon, 7 Jul 2025 14:02:27 -0400 Subject: [PATCH 6/6] Remove what's new page generation (#47095) Fixes #47093 --- .github/workflows/whats-new.yml | 60 ---------- .openpublishing.redirection.json | 16 ++- docs/toc.yml | 2 +- docs/whats-new/dotnet-9-release.md | 175 ----------------------------- docs/whats-new/dotnet-docs-mod0.md | 76 ------------- docs/whats-new/dotnet-docs-mod1.md | 90 --------------- docs/whats-new/dotnet-docs-mod2.md | 80 ------------- docs/whats-new/index.yml | 10 -- docs/whats-new/toc.yml | 17 +-- 9 files changed, 17 insertions(+), 509 deletions(-) delete mode 100644 .github/workflows/whats-new.yml delete mode 100644 docs/whats-new/dotnet-9-release.md delete mode 100644 docs/whats-new/dotnet-docs-mod0.md delete mode 100644 docs/whats-new/dotnet-docs-mod1.md delete mode 100644 docs/whats-new/dotnet-docs-mod2.md diff --git a/.github/workflows/whats-new.yml b/.github/workflows/whats-new.yml deleted file mode 100644 index 6067f4574c574..0000000000000 --- a/.github/workflows/whats-new.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: "generate what's new article" - -on: - schedule: - - cron: "0 2 1 * *" # The first of every month at 2 AM - workflow_dispatch: - inputs: - reason: - description: "The reason for running the workflow" - required: true - default: "Manual run" - -permissions: - contents: read - -jobs: - create-what-is-new: - runs-on: ubuntu-latest - permissions: - contents: write - id-token: write - pull-requests: write - - steps: - - name: Harden Runner - uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2 - with: - egress-policy: audit - - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: "Print manual run reason" - if: ${{ github.event_name == 'workflow_dispatch' }} - run: | - echo "Reason: ${{ github.event.inputs.reason }}" - - - name: Azure OpenID Connect - id: azure-oidc-auth - uses: dotnet/docs-tools/.github/actions/oidc-auth-flow@main - with: - client-id: ${{ secrets.CLIENT_ID }} - tenant-id: ${{ secrets.TENANT_ID }} - audience: ${{ secrets.OSMP_API_AUDIENCE }} - - - uses: dotnet/docs-tools/WhatsNew.Cli@main - env: - GitHubKey: ${{ secrets.GITHUB_TOKEN }} - AZURE_ACCESS_TOKEN: ${{ steps.azure-oidc-auth.outputs.access-token }} - with: - owner: dotnet - repo: docs - savedir: './docs/whats-new' - - - name: create-pull-request - uses: dotnet/actions-create-pull-request@v4 - with: - branch: create-whatsnew-pull-request/patch - title: "What's new article" - commit-message: 'Bot đŸ€– generated "What''s new article"' - body: "Automated creation of What's new article." diff --git a/.openpublishing.redirection.json b/.openpublishing.redirection.json index 5fe9197ca35a8..ae7ab0accee2a 100644 --- a/.openpublishing.redirection.json +++ b/.openpublishing.redirection.json @@ -245,16 +245,20 @@ "redirect_url": "/dotnet/samples-and-tutorials/" }, { - "source_path_from_root": "/docs/whats-new/dotnet-docs-2022-08-01.md", - "redirect_url": "/dotnet/whats-new/dotnet-docs-mod2" + "source_path_from_root": "/docs/whats-new/dotnet-docs-mod0", + "redirect_url": "/dotnet/whats-new" }, { - "source_path_from_root": "/docs/whats-new/dotnet-docs-2022-09-01.md", - "redirect_url": "/dotnet/whats-new/dotnet-docs-mod0" + "source_path_from_root": "/docs/whats-new/dotnet-docs-mod1", + "redirect_url": "/dotnet/whats-new" }, { - "source_path_from_root": "/docs/whats-new/dotnet-docs-2022-10-01.md", - "redirect_url": "/dotnet/whats-new/dotnet-docs-mod1" + "source_path_from_root": "/docs/whats-new/dotnet-docs-mod2", + "redirect_url": "/dotnet/whats-new" + }, + { + "source_path_from_root": "/docs/whats-new/dotnet-9-release.md", + "redirect_url": "/dotnet/whats-new" } ] } diff --git a/docs/toc.yml b/docs/toc.yml index 68c7e4a932f67..e94eb7631defd 100644 --- a/docs/toc.yml +++ b/docs/toc.yml @@ -1,7 +1,7 @@ items: - name: Welcome href: welcome.md -- name: What's new in .NET docs +- name: What's new in .NET href: whats-new/index.yml - name: .NET fundamentals href: fundamentals/ diff --git a/docs/whats-new/dotnet-9-release.md b/docs/whats-new/dotnet-9-release.md deleted file mode 100644 index 5981917da009f..0000000000000 --- a/docs/whats-new/dotnet-9-release.md +++ /dev/null @@ -1,175 +0,0 @@ ---- -title: ".NET docs: What's new for .NET 9" -description: "What's new in the .NET docs for .NET 9." -ms.custom: October-2024 -ms.date: 11/11/2024 ---- - -# .NET docs: What's new for .NET 9 - -This article lists some of the major changes to docs for .NET 9. - -## .NET security - -### Updated articles - -- [Cross-Platform Cryptography in .NET](../standard/security/cross-platform-cryptography.md) - Crypto docs - -## .NET breaking changes - -### New articles - -- [Breaking changes in .NET 9](../core/compatibility/9.0.md) -- [`dotnet workload` commands output change](../core/compatibility/sdk/9.0/dotnet-workload-output.md) -- [`GetXmlNamespaceMaps` type change](../core/compatibility/wpf/9.0/xml-namespace-maps.md) -- [`installer` repo version no longer included in `productcommits` files](../core/compatibility/sdk/9.0/productcommits-versions.md) -- [API obsoletions with non-default diagnostic IDs (.NET 9)](../core/compatibility/core-libraries/9.0/obsolete-apis-with-custom-diagnostics.md) -- [BindingSource.SortDescriptions doesn't return null](../core/compatibility/windows-forms/9.0/sortdescriptions-return-value.md) -- [Breaking changes in .NET 9](../core/compatibility/9.0.md) -- [Changes to nullability annotations (Windows Forms)](../core/compatibility/windows-forms/9.0/nullability-changes.md) -- [ComponentDesigner.Initialize throws ArgumentNullException](../core/compatibility/windows-forms/9.0/componentdesigner-initialize.md) -- [Creating type of array of System.Void not allowed](../core/compatibility/core-libraries/9.0/type-instance.md) -- [DataGridViewRowAccessibleObject.Name starting row index](../core/compatibility/windows-forms/9.0/datagridviewrowaccessibleobject-name-row.md) -- [Default `Equals()` and `GetHashCode()` throw for types marked with `InlineArrayAttribute`](../core/compatibility/core-libraries/9.0/inlinearrayattribute.md) -- [DefaultKeyResolution.ShouldGenerateNewKey has altered meaning](../core/compatibility/aspnet-core/9.0/key-resolution.md) -- [Deprecated desktop Windows/macOS/Linux MonoVM runtime packages](../core/compatibility/deployment/9.0/monovm-packages.md) -- [Floating point-to-integer conversions are saturating](../core/compatibility/jit/9.0/fp-to-integer.md) -- [HttpListenerRequest.UserAgent is nullable](../core/compatibility/networking/9.0/useragent-nullable.md) -- [In-box BinaryFormatter implementation removed and always throws](../core/compatibility/serialization/9.0/binaryformatter-removal.md) -- [Inline array struct size limit is enforced](../core/compatibility/core-libraries/9.0/inlinearray-size.md) -- [InMemoryDirectoryInfo prepends rootDir to files](../core/compatibility/core-libraries/9.0/inmemorydirinfo-prepends-rootdir.md) -- [No exception if DataGridView is null](../core/compatibility/windows-forms/9.0/datagridviewheadercell-nre.md) -- [PictureBox raises HttpClient exceptions](../core/compatibility/windows-forms/9.0/httpclient-exceptions.md) -- [RuntimeHelpers.GetSubArray returns different type](../core/compatibility/core-libraries/9.0/getsubarray-return.md) -- [Support for empty environment variables](../core/compatibility/core-libraries/9.0/empty-env-variable.md) -- [Terminal logger is default](../core/compatibility/sdk/9.0/terminal-logger.md) -- [Warning emitted for .NET Standard 1.x targets](../core/compatibility/sdk/9.0/netstandard-warning.md) - -## .NET fundamentals - -### New articles - -- [CA2022: Avoid inexact read with Stream.Read](../fundamentals/code-analysis/quality-rules/ca2022.md) -- [CA2265: Do not compare `Span` to `null` or `default`](../fundamentals/code-analysis/quality-rules/ca2265.md) -- [Configuration source generator](../core/extensions/configuration-generator.md) - -### Updated articles - -- [.NET Standard](../standard/net-standard.md) -- [Code quality rules](../fundamentals/code-analysis/quality-rules/index.md) -- [Configuration in .NET](../core/extensions/configuration.md) - Add content for config source gen with interceptors -- [Obsolete features in .NET 5+](../fundamentals/syslib-diagnostics/obsoletions-overview.md) - Update diagnostic docs for SYSLIB0009 -- [Overview of .NET source code analysis](../fundamentals/code-analysis/overview.md) -- [Synchronizing data for multithreading](../standard/threading/synchronizing-data-for-multithreading.md) - Add language reference for `lock` -- [SYSLIB0009: AuthenticationManager is not supported](../fundamentals/syslib-diagnostics/syslib0009.md) - Update diagnostic docs for SYSLIB0009 -- [What's new in the SDK and tooling for .NET 9](../core/whats-new/dotnet-9/sdk.md) - -## C# language - -### New articles - -- [Errors and warnings associated with `ref struct` types](../csharp/language-reference/compiler-messages/ref-struct-errors.md) -- [Errors and warnings related to `partial` type and `partial` member declarations](../csharp/language-reference/compiler-messages/partial-declarations.md) -- [Errors and warnings related to the `lock` statement and thread synchronization](../csharp/language-reference/compiler-messages/lock-semantics.md) -- [Errors and warnings related to the `params` modifier on method parameters](../csharp/language-reference/compiler-messages/params-arrays.md) -- [Errors and warnings related to the `yield return` statement and iterator methods](../csharp/language-reference/compiler-messages/iterator-yield.md) -- [Partial member (C# Reference)](../csharp/language-reference/keywords/partial-member.md) -- [Resolve errors and warnings that affect overload resolution.](../csharp/language-reference/compiler-messages/overload-resolution.md) -- [What's new in C# 13](../csharp/whats-new/csharp-13.md) - -### Updated articles - -- [interface (C# Reference)](../csharp/language-reference/keywords/interface.md) - Add reference and conceptual content for `ref struct` allowed in interfaces -- [`ref` structure types (C# reference)](../csharp/language-reference/builtin-types/ref-struct.md) - - Add reference and conceptual content for `ref struct` allowed in interfaces - - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Access Modifiers (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/access-modifiers.md) - Add conceptual content for partial properties -- [Arithmetic operators (C# reference)](../csharp/language-reference/operators/arithmetic-operators.md) - Explain better conversion from collection expression -- [Assembly level attributes interpreted by the C# compiler](../csharp/language-reference/attributes/global.md) - Add reference and conceptual content for `ref struct` allowed in interfaces -- [Attributes](../csharp/advanced-topics/reflection-and-attributes/index.md) - Add conceptual content for partial properties -- [Automatically implemented properties](../csharp/programming-guide/classes-and-structs/auto-implemented-properties.md) - Add conceptual content for partial properties -- [await operator - asynchronously await for a task to complete](../csharp/language-reference/operators/await.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [C# Compiler Errors](../csharp/language-reference/compiler-messages/index.md) - Add errors and warnings for params arrays -- [C# Keywords](../csharp/language-reference/keywords/index.md) - - Add conceptual content for partial properties - - Add reference and conceptual content for `ref struct` allowed in interfaces -- [C# Warning waves](../csharp/language-reference/compiler-messages/warning-waves.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Collection expressions - C# language reference](../csharp/language-reference/operators/collection-expressions.md) - Explain better conversion from collection expression -- [Compiler Error CS0401](../csharp/misc/cs0401.md) - Add, update compiler error and warning messages for `ref struct` interfaces -- [Compiler Error CS1996](../csharp/language-reference/compiler-messages/cs1996.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Compiler Error CS4004](../csharp/language-reference/compiler-messages/cs4004.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Compiler Error CS8177](../csharp/language-reference/compiler-messages/cs8177.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Constraints on type parameters (C# Programming Guide)](../csharp/programming-guide/generics/constraints-on-type-parameters.md) - Add reference and conceptual content for `ref struct` allowed in interfaces -- [default value expressions - produce the default value](../csharp/language-reference/operators/default.md) - Explain better conversion from collection expression -- [Errors and warnings associated with `ref struct` types](../csharp/language-reference/compiler-messages/ref-struct-errors.md) - - Add new diagnostics - - Add, update compiler error and warning messages for `ref struct` interfaces -- [Errors and warnings associated with reference parameters, variables, and returns](../csharp/language-reference/compiler-messages/ref-modifiers-errors.md) - - Add new diagnostics - - Add, update compiler error and warning messages for `ref struct` interfaces -- [Errors and warnings related to the `yield return` statement and iterator methods](../csharp/language-reference/compiler-messages/iterator-yield.md) - - Add errors and warnings related to `partial` properties and indexers - - update and consolidate errors related to iterators and `yield` -- [Expression Trees](../csharp/advanced-topics/expression-trees/index.md) - Add conceptual content for partial properties -- [from clause (C# Reference)](../csharp/language-reference/keywords/from-clause.md) - Add conceptual content for partial properties -- [get (C# Reference)](../csharp/language-reference/keywords/get.md) - Add conceptual content for partial properties -- [How to handle an exception using try/catch](../csharp/fundamentals/exceptions/how-to-handle-an-exception-using-try-catch.md) - Add conceptual content for partial properties -- [How to initialize a dictionary with a collection initializer (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/how-to-initialize-a-dictionary-with-a-collection-initializer.md) - Add params collections -- [How to initialize objects by using an object initializer (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/how-to-initialize-objects-by-using-an-object-initializer.md) - Add params collections -- [Indexers](../csharp/programming-guide/indexers/index.md) - Add conceptual content for partial properties -- [Indexers in Interfaces (C# Programming Guide)](../csharp/programming-guide/indexers/indexers-in-interfaces.md) - Add conceptual content for partial properties -- [Interface Properties (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/interface-properties.md) - Add conceptual content for partial properties -- [Introduction to classes](../csharp/fundamentals/types/classes.md) - Add conceptual content for partial properties -- [Lambda expressions and anonymous functions](../csharp/language-reference/operators/lambda-expressions.md) - Add params collections -- [Member access operators and expressions - the dot, indexer, and invocation operators.](../csharp/language-reference/operators/member-access-operators.md) - - Explain better conversion from collection expression - - Add C# 13 small fixes -- [Method Parameters](../csharp/language-reference/keywords/method-parameters.md) - - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods - - Add params collections -- [Methods in C\#](../csharp/methods.md) - Add params collections -- [Miscellaneous attributes interpreted by the C# compiler](../csharp/language-reference/attributes/general.md) - - Add OverloadResolutionPriority conceptual documentation. - - Add reference and conceptual content for `ref struct` allowed in interfaces -- [nameof expression (C# reference)](../csharp/language-reference/operators/nameof.md) - Explain better conversion from collection expression -- [new operator - The `new` operator creates a new instance of a type](../csharp/language-reference/operators/new-operator.md) - Explain better conversion from collection expression -- [Object and Collection Initializers (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/object-and-collection-initializers.md) - Add params collections -- [Partial Classes and Methods (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/partial-classes-and-methods.md) - Add conceptual content for partial properties -- [Partial type (C# Reference)](../csharp/language-reference/keywords/partial-type.md) - Add conceptual content for partial properties -- [Properties (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/properties.md) - Add conceptual content for partial properties -- [Recommended XML tags for C# documentation comments](../csharp/language-reference/xmldoc/recommended-tags.md) - Add conceptual content for partial properties -- [Resolve errors and warnings generated from expressions prohibited in expression trees](../csharp/language-reference/compiler-messages/expression-tree-restrictions.md) - - Add conceptual content for partial properties - - Add errors and warnings for params arrays -- [Resolve errors and warnings in array and collection declarations and initialization expressions](../csharp/language-reference/compiler-messages/array-declaration-errors.md) - Add errors and warnings related to overload resolution -- [Resolve errors and warnings with inline array declarations](../csharp/language-reference/compiler-messages/inline-array-errors.md) - - Add new diagnostics - - Add conceptual content for partial properties -- [Resolve warnings related to language features and versions](../csharp/language-reference/compiler-messages/feature-version-errors.md) - - Add new diagnostics - - Add, update compiler error and warning messages for `ref struct` interfaces -- [Roadmap for Java developers learning C\#](../csharp/tour-of-csharp/tips-for-java-developers.md) - Add conceptual content for partial properties -- [select clause (C# Reference)](../csharp/language-reference/keywords/select-clause.md) - Add conceptual content for partial properties -- [set (C# Reference)](../csharp/language-reference/keywords/set.md) - Add conceptual content for partial properties -- [Standard .NET event patterns](../csharp/event-pattern.md) - Add conceptual content for partial properties -- [The `ref` keyword](../csharp/language-reference/keywords/ref.md) - Add, update compiler error and warning messages for `ref struct` interfaces -- [The C# type system](../csharp/fundamentals/types/index.md) - Add conceptual content for partial properties -- [The checked and unchecked statements (C# reference)](../csharp/language-reference/statements/checked-and-unchecked.md) - Explain better conversion from collection expression -- [The history of C\#](../csharp/whats-new/csharp-version-history.md) - Add conceptual content for partial properties -- [The lock statement - ensure exclusive access to a shared resource](../csharp/language-reference/statements/lock.md) - Add language reference for `lock` -- [Type-testing operators and cast expressions - `is`, `as`, `typeof` and casts](../csharp/language-reference/operators/type-testing-and-cast.md) - Explain better conversion from collection expression -- [Use string interpolation to construct formatted strings](../csharp/tutorials/string-interpolation.md) - Add conceptual content for partial properties -- [Using indexers (C# Programming Guide)](../csharp/programming-guide/indexers/using-indexers.md) - Add conceptual content for partial properties -- [Using Properties (C# Programming Guide)](../csharp/programming-guide/classes-and-structs/using-properties.md) - Add conceptual content for partial properties -- [where (generic type constraint) (C# Reference)](../csharp/language-reference/keywords/where-generic-type-constraint.md) - Add reference and conceptual content for `ref struct` allowed in interfaces -- [yield statement - provide the next element](../csharp/language-reference/statements/yield.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Compiler Errors on partial type and member declarations](../csharp/language-reference/compiler-messages/partial-declarations.md) - Add conceptual content for partial properties -- [Errors and warnings for iterator methods and `yield return`](../csharp/language-reference/compiler-messages/iterator-yield.md) - Add information for C# 13 feature `ref` locals and `unsafe` contexts in iterators and `async` methods -- [Errors and warnings related to `params` arrays](../csharp/language-reference/compiler-messages/params-arrays.md) - Add params collections - -## .NET Framework - -### Updated articles - -- [Add Business Logic By Using Partial Methods](../framework/data/adonet/sql/linq/adding-business-logic-by-using-partial-methods.md) - Add conceptual content for partial properties -- [dangerousThreadingAPI MDA](../framework/debug-trace-profile/dangerousthreadingapi-mda.md) - Add language reference for `lock` diff --git a/docs/whats-new/dotnet-docs-mod0.md b/docs/whats-new/dotnet-docs-mod0.md deleted file mode 100644 index 899816391a99b..0000000000000 --- a/docs/whats-new/dotnet-docs-mod0.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: ".NET docs: What's new for June 2025" -description: "What's new in the .NET docs for June 2025." -ms.custom: June-2025 -ms.date: 07/01/2025 ---- - -# .NET docs: What's new for June 2025 - -Welcome to what's new in the .NET docs for June 2025. This article lists some of the major changes to docs during this period. - -## .NET breaking changes - -### New articles - -- [.NET runtime no longer provides default SIGTERM signal handler](../core/compatibility/core-libraries/10.0/sigterm-signal-handler.md) -- [dotnet package list command now performs restore by default](../core/compatibility/sdk/10.0/dotnet-package-list-restore.md) -- [DriveInfo.DriveFormat returns Linux filesystem types](../core/compatibility/core-libraries/10.0/driveinfo-driveformat-linux.md) -- [HttpClient/SslStream default certificate revocation check mode changed to `Online`](../core/compatibility/networking/10.0/ssl-certificate-revocation-check-default.md) -- [NUGET_ENABLE_ENHANCED_HTTP_RETRY environment variable removed](../core/compatibility/sdk/10.0/nuget-enhanced-http-retry-removed.md) -- [OpenSSL cryptographic primitives are not supported on macOS](../core/compatibility/cryptography/10.0/openssl-macos-unsupported.md) -- [PackageReference without a version will raise an error](../core/compatibility/sdk/10.0/nu1015-packagereference-version.md) -- [Single-file apps no longer look for native libraries in executable directory](../core/compatibility/interop/10.0/native-library-search.md) -- [YMM embedded rounding removed from AVX10.2](../core/compatibility/core-libraries/10.0/ymm-embedded-rounding.md) - -## AI in .NET - -### New articles - -- [Sample implementations of IChatClient and IEmbeddingGenerator](../ai/advanced/sample-implementations.md) - -## .NET fundamentals - -### New articles - -- [CA2025: Do not pass 'IDisposable' instances into unawaited tasks](../fundamentals/code-analysis/quality-rules/ca2025.md) -- [Customize help output](../standard/commandline/how-to-customize-help.md) -- [Design guidance](../standard/commandline/design-guidance.md) -- [How to configure the parser in System.CommandLine](../standard/commandline/how-to-configure-the-parser.md) -- [How to customize parsing and validation in System.CommandLine](../standard/commandline/how-to-customize-parsing-and-validation.md) -- [MSTest lifecycle](../core/testing/unit-testing-mstest-writing-tests-lifecycle.md) -- [Parsing and invocation in System.CommandLine](../standard/commandline/how-to-parse-and-invoke.md) -- [System.CommandLine 2.0.0-beta5 migration guide](../standard/commandline/migration-guide-2.0.0-beta5.md) - -### Updated articles - -- [Syntax overview: Commands, options, and arguments](../standard/commandline/syntax.md) - System.CommandLine docs update -- [Tutorial: Get started with System.CommandLine](../standard/commandline/get-started-tutorial.md) - System.CommandLine docs update -- [What's new in the .NET 10 runtime](../core/whats-new/dotnet-10/runtime.md) - What's new in Preview 5 - -## Microsoft Orleans - -### Updated articles - -- [Use cancellation tokens in Orleans grains](../orleans/grains/cancellation-tokens.md) - [Orleans] Document cancellation support - -## Community contributors - -The following people contributed to the .NET docs during this period. Thank you! Learn how to contribute by following the links under "Get involved" in the [what's new landing page](index.yml). - -- [fcdeveloper00](https://github.com/fcdeveloper00) - ![3 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-3-green) -- [BartoszKlonowski](https://github.com/BartoszKlonowski) - Bartosz Klonowski ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [Alvynskio](https://github.com/Alvynskio) - Alvyn Berg ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [bigboybamo](https://github.com/bigboybamo) - Olabamiji Oyetubo ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [davidmost](https://github.com/davidmost) - David Zhang ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [EngincanV](https://github.com/EngincanV) - Engincan VESKE ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Gurry-12](https://github.com/Gurry-12) - GURPREET SINGH ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Happypig375](https://github.com/Happypig375) - Hadrian Tang ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Izana180](https://github.com/Izana180) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [kasperk81](https://github.com/kasperk81) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [matt-baker-agd-systems](https://github.com/matt-baker-agd-systems) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [meziantou](https://github.com/meziantou) - GĂ©rald BarrĂ© ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [neel-middleware](https://github.com/neel-middleware) - Neel Shah ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [SolalPirelli](https://github.com/SolalPirelli) - Solal Pirelli ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [steveberdy](https://github.com/steveberdy) - Steve Berdy ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [valentincpopa](https://github.com/valentincpopa) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) diff --git a/docs/whats-new/dotnet-docs-mod1.md b/docs/whats-new/dotnet-docs-mod1.md deleted file mode 100644 index 6f4174a24fd1d..0000000000000 --- a/docs/whats-new/dotnet-docs-mod1.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: ".NET docs: What's new for April 2025" -description: "What's new in the .NET docs for April 2025." -ms.custom: April-2025 -ms.date: 05/01/2025 ---- - -# .NET docs: What's new for April 2025 - -Welcome to what's new in the .NET docs for April 2025. This article lists some of the major changes to docs during this period. - -## .NET breaking changes - -### New articles - -- [.NET CLI `--interactive` defaults to `true` in user scenarios](../core/compatibility/sdk/10.0/dotnet-cli-interactive.md) -- [Default trace context propagator updated to W3C standard](../core/compatibility/core-libraries/10.0/default-trace-context-propagator.md) -- [Linux native library resolution no longer uses `netcoredeps`](../core/compatibility/interop/8.0/linux-netcoredeps.md) -- [Streaming HTTP responses enabled by default in browser HTTP clients](../core/compatibility/networking/10.0/default-http-streaming.md) - -## .NET fundamentals - -### New articles - -- [Compile-time metric source generation](../core/diagnostics/metrics-generator.md) -- [dotnet package remove](../core/tools/dotnet-package-remove.md) -- [dotnet reference list](../core/tools/dotnet-reference-list.md) -- [Migrate from .NET Framework Windows Performance Counters to .NET metrics](../core/diagnostics/migrate-from-windows-performance-counters.md) -- [MSTEST0042: Avoid duplicated 'DataRow' entries](../core/testing/mstest-analyzers/mstest0042.md) -- [MSTEST0043: Use retry attribute on test method](../core/testing/mstest-analyzers/mstest0043.md) -- [SYSLIB0061: System.Linq.Queryable.MaxBy and System.Linq.Queryable.MinBy taking an IComparer\ are obsolete.](../fundamentals/syslib-diagnostics/syslib0061.md) - -### Updated articles - -- [Miscellaneous Constructs in Regular Expressions](../standard/base-types/miscellaneous-constructs-in-regular-expressions.md) - Change "alignment" to "width" - -## C# language - -### New articles - -- [Create types in C\#](../csharp/tour-of-csharp/tutorials/tuples-and-types.md) -- [Extension declaration (C# Reference)](../csharp/language-reference/keywords/extension.md) - -## .NET Framework - -### New articles - -- [April 2025 cumulative update preview](../framework/release-notes/2025/04-22-april-cumulative-update-preview.md) -- [April 2025 security and quality rollup](../framework/release-notes/2025/04-08-april-cumulative-update.md) -- [March 2025 cumulative update preview](../framework/release-notes/2025/03-25-march-cumulative-update-preview.md) - -## Community contributors - -The following people contributed to the .NET docs during this period. Thank you! Learn how to contribute by following the links under "Get involved" in the [what's new landing page](index.yml). - -- [BartoszKlonowski](https://github.com/BartoszKlonowski) - Bartosz Klonowski ![5 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-5-green) -- [BenjaminBrienen](https://github.com/BenjaminBrienen) - Benjamin Brienen ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [kant2002](https://github.com/kant2002) - Andrii Kurdiumov ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [MBSadeghzadeh](https://github.com/MBSadeghzadeh) - ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [timdeschryver](https://github.com/timdeschryver) - Tim Deschryver ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [A-Programmer](https://github.com/A-Programmer) - Kamran Sadin ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [AustinWise](https://github.com/AustinWise) - Austin Wise ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [bforget163](https://github.com/bforget163) - Yongwei Li ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [bigboybamo](https://github.com/bigboybamo) - Olabamiji Oyetubo ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [ByronMayne](https://github.com/ByronMayne) - Byron Mayne ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [cycopepe](https://github.com/cycopepe) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [D05Col](https://github.com/D05Col) - Dylan Collins ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Defman21](https://github.com/Defman21) - Sergey Kislyakov ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [flibustier7seas](https://github.com/flibustier7seas) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [gfoidl](https://github.com/gfoidl) - GĂŒnther Foidl ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [hez2010](https://github.com/hez2010) - Steve ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [IDisposable](https://github.com/IDisposable) - Marc Brooks ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [jnoordsij](https://github.com/jnoordsij) - Jesper Noordsij ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [josesimoes](https://github.com/josesimoes) - JosĂ© SimĂ”es ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [kdemuth](https://github.com/kdemuth) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Lanayx](https://github.com/Lanayx) - Vladimir Shchur ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [LucasBenninger](https://github.com/LucasBenninger) - Lucas Benninger ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [mehboob14](https://github.com/mehboob14) - Mehboob Arshad ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [mister-giga](https://github.com/mister-giga) - Giga Bokuchava ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [nileshsheth](https://github.com/nileshsheth) - Nilesh Sheth ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [OoLunar](https://github.com/OoLunar) - Lunar Starstrum ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Rageking8](https://github.com/Rageking8) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [samwherever](https://github.com/samwherever) - Sam Allen ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [sigmade](https://github.com/sigmade) - Yegor Sychev ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [skycommand](https://github.com/skycommand) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [timpaulus-fsw](https://github.com/timpaulus-fsw) - Tim Paulus ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [tjmccoy](https://github.com/tjmccoy) - Tyler McCoy ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [vzamboulingame](https://github.com/vzamboulingame) - Vinodh Zamboulingame ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [WeihanLi](https://github.com/WeihanLi) - Weihan Li ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [wipiano](https://github.com/wipiano) - Kohei Hakoishi ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) diff --git a/docs/whats-new/dotnet-docs-mod2.md b/docs/whats-new/dotnet-docs-mod2.md deleted file mode 100644 index 35fd3c3808658..0000000000000 --- a/docs/whats-new/dotnet-docs-mod2.md +++ /dev/null @@ -1,80 +0,0 @@ ---- -title: ".NET docs: What's new for May 2025" -description: "What's new in the .NET docs for May 2025." -ms.custom: May-2025 -ms.date: 06/01/2025 ---- - -# .NET docs: What's new for May 2025 - -Welcome to what's new in the .NET docs for May 2025. This article lists some of the major changes to docs during this period. - -## .NET breaking changes - -### New articles - -- [HTTP warnings promoted to errors in `dotnet package list` and `dotnet package search`](../core/compatibility/sdk/10.0/http-warnings-to-errors.md) -- [Incorrect usage of DynamicResource causes application crash](../core/compatibility/wpf/10.0/dynamicresource-crash.md) -- [ProviderAliasAttribute moved to Microsoft.Extensions.Logging.Abstractions](../core/compatibility/extensions/10.0/provideraliasattribute-moved-assembly.md) -- [Specifying DllImportSearchPath.AssemblyDirectory only searches the assembly directory](../core/compatibility/interop/10.0/search-assembly-directory.md) - -## AI in .NET - -### New articles - -- [Create a minimal MCP client using .NET](../ai/quickstarts/build-mcp-client.md) -- [Create and connect to a minimal MCP server using .NET](../ai/quickstarts/build-mcp-server.md) -- [Get started with .NET AI and the Model Context Protocol](../ai/get-started-mcp.md) -- [Microsoft.Extensions.AI libraries](../ai/microsoft-extensions-ai.md) -- [Request a response with structured output](../ai/quickstarts/structured-output.md) -- [Tutorial: Evaluate response safety with caching and reporting](../ai/tutorials/evaluate-safety.md) - -## .NET fundamentals - -### New articles - -- [GitHub Copilot app modernization - upgrade for .NET FAQ](../core/porting/github-copilot-app-modernization-faq.yml) -- [Install GitHub Copilot app modernization - upgrade for .NET](../core/porting/github-copilot-app-modernization-install.md) -- [What is GitHub Copilot app modernization - upgrade for .NET?](../core/porting/github-copilot-app-modernization-overview.md) -- [Log buffering in .NET](../core/extensions/log-buffering.md) -- [Log sampling in .NET](../core/extensions/log-sampling.md) -- [Implement with Copilot (IDE3000)](../fundamentals/code-analysis/style-rules/ide3000.md) -- [.NET runtime wait handle events](../fundamentals/diagnostics/runtime-wait-handle-events.md) - -### Updated articles - -- [Debug ThreadPool starvation](../core/diagnostics/debug-threadpool-starvation.md) - Add dotnet-trace to Debug ThreadPool Starvation -- [What's new in .NET libraries for .NET 10](../core/whats-new/dotnet-10/libraries.md) - What's new in Preview 4 -- [What's new in the .NET 10 runtime](../core/whats-new/dotnet-10/runtime.md) - What's new in Preview 4 - -## C# language - -### New articles - -- [Compiler Error CS9036](../csharp/language-reference/compiler-messages/cs9036.md) -- [Errors and warnings for string literal declarations](../csharp/language-reference/compiler-messages/string-literal.md) -- [Errors and warnings related to extension methods declared with `this` parameters or `extension` blocks](../csharp/language-reference/compiler-messages/extension-declarations.md) -- [Match data against patterns](../csharp/tour-of-csharp/tutorials/pattern-matching.md) - -## Community contributors - -The following people contributed to the .NET docs during this period. Thank you! Learn how to contribute by following the links under "Get involved" in the [what's new landing page](index.yml). - -- [BartoszKlonowski](https://github.com/BartoszKlonowski) - Bartosz Klonowski ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [copilot-swe-agent](https://github.com/copilot-swe-agent) - ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [Rageking8](https://github.com/Rageking8) - ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [verdie-g](https://github.com/verdie-g) - GrĂ©goire ![2 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-2-green) -- [AKapeniak](https://github.com/AKapeniak) - Andy Kapeniak ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [bdukes](https://github.com/bdukes) - Brian Dukes ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Bouke](https://github.com/Bouke) - Bouke Haarsma ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [calebspain](https://github.com/calebspain) - Caleb Spain ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [felisevan](https://github.com/felisevan) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [gayuvick](https://github.com/gayuvick) - Gayu ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [Happypig375](https://github.com/Happypig375) - Hadrian Tang ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [ieviev](https://github.com/ieviev) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [KnapSac](https://github.com/KnapSac) - Casper Verhaar ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [LeMinh22621](https://github.com/LeMinh22621) - LĂȘ Hồng Minh ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [lubugit](https://github.com/lubugit) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [mbeirouti](https://github.com/mbeirouti) - Matthew Beirouti ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [MBSadeghzadeh](https://github.com/MBSadeghzadeh) - ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) -- [neel-middleware](https://github.com/neel-middleware) - Neel Shah ![1 pull requests.](https://img.shields.io/badge/Merged%20Pull%20Requests-1-green) diff --git a/docs/whats-new/index.yml b/docs/whats-new/index.yml index c013c100cfbc5..e4b1a83bd2db9 100644 --- a/docs/whats-new/index.yml +++ b/docs/whats-new/index.yml @@ -36,16 +36,6 @@ landingContent: url: /ef/core/what-is-new/ef-core-9.0/whatsnew - text: Documentation updates url: dotnet-9-release.md -- title: Latest documentation updates - linkLists: - - linkListType: whats-new - links: - - text: June 2025 - url: dotnet-docs-mod0.md - - text: May 2025 - url: dotnet-docs-mod2.md - - text: April 2025 - url: dotnet-docs-mod1.md - title: Language updates linkLists: - linkListType: whats-new diff --git a/docs/whats-new/toc.yml b/docs/whats-new/toc.yml index 0057196497c06..6273026912d4f 100644 --- a/docs/whats-new/toc.yml +++ b/docs/whats-new/toc.yml @@ -3,15 +3,6 @@ items: href: index.yml expanded: true items: - - name: Latest documentation updates - expanded: true - items: - - name: June 2025 - href: dotnet-docs-mod0.md - - name: May 2025 - href: dotnet-docs-mod2.md - - name: April 2025 - href: dotnet-docs-mod1.md - name: Product updates items: - name: .NET 10 @@ -19,6 +10,8 @@ items: items: - name: .NET 10 href: ../core/whats-new/dotnet-10/overview.md?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json + - name: C# 13 + href: /csharp/whats-new/csharp-13?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: ASP.NET Core 10.0 href: /aspnet/core/release-notes/aspnetcore-10.0?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: EF Core 10 @@ -27,18 +20,20 @@ items: items: - name: .NET 9 href: ../core/whats-new/dotnet-9/overview.md?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json + - name: C# 12 + href: /csharp/whats-new/csharp-12?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: ASP.NET Core 9.0 href: /aspnet/core/release-notes/aspnetcore-9.0?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: .NET MAUI 9 href: /dotnet/maui/whats-new/dotnet-9?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: EF Core 9 href: /ef/core/what-is-new/ef-core-9.0/whatsnew?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - - name: Documentation updates - href: dotnet-9-release.md - name: .NET 8 items: - name: .NET 8 href: ../core/whats-new/dotnet-8/overview.md?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json + - name: C# 11 + href: /csharp/whats-new/csharp-11?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: ASP.NET Core 8.0 href: /aspnet/core/release-notes/aspnetcore-8.0?toc=/dotnet/whats-new/toc.json&bc=/dotnet/breadcrumb/toc.json - name: Windows Forms (.NET 8)