From 669732e49851ad4f3edaccc1504ac28381201b81 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 16 Oct 2025 23:56:47 +0000 Subject: [PATCH 1/3] Initial plan From c2e534da3e1dd32fde49087f6031866323efd762 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Oct 2025 00:01:00 +0000 Subject: [PATCH 2/3] Add workaround for maintaining old tool behavior with RuntimeIdentifier Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com> --- .../compatibility/sdk/10.0/dotnet-tool-pack-publish.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md b/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md index 6db7eca562eca..cd74d1faacc9c 100644 --- a/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md +++ b/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md @@ -39,6 +39,15 @@ This change enables the creation of optimized, platform-specific .NET Tool packa If you want to create tools for only a subset of platforms, use `ToolPackageRuntimeIdentifiers`. If you want to disable RID-specific tool packages entirely, you should conditionally include or exclude the `RuntimeIdentifiers` property in your project file. +Alternatively, if you're using the .NET 10.0.100 GA SDK or later and you want to maintain the old behavior (framework-dependent, platform-agnostic .NET Tools) even when a `RuntimeIdentifier` is specified, add the following properties to your project file: + +```xml + + false + false + +``` + ## Affected APIs None. From 1b4ce51fbd22a2626ee0f43feaba45dcdfef001b Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 16 Oct 2025 17:57:06 -0700 Subject: [PATCH 3/3] Update docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md --- docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md b/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md index cd74d1faacc9c..0f4d0080f841c 100644 --- a/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md +++ b/docs/core/compatibility/sdk/10.0/dotnet-tool-pack-publish.md @@ -39,7 +39,7 @@ This change enables the creation of optimized, platform-specific .NET Tool packa If you want to create tools for only a subset of platforms, use `ToolPackageRuntimeIdentifiers`. If you want to disable RID-specific tool packages entirely, you should conditionally include or exclude the `RuntimeIdentifiers` property in your project file. -Alternatively, if you're using the .NET 10.0.100 GA SDK or later and you want to maintain the old behavior (framework-dependent, platform-agnostic .NET Tools) even when a `RuntimeIdentifier` is specified, add the following properties to your project file: +Alternatively, if you want to maintain the previous behavior (framework-dependent, platform-agnostic .NET Tools) even when a `RuntimeIdentifier` is specified, add the following properties to your project file: ```xml