From 24666dce0c0eb5a274ecd09a2c7adda3f25f95a5 Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Thu, 15 Oct 2026 10:48:18 +0200 Subject: [PATCH] feat: multi-target the MockHttp tool for net10.0 and net11.0 Ship the global tool and its tests on both TFMs so net10 hosts can run it without the .NET 11 SDK. Pin Microsoft.AspNetCore.TestHost per TFM (10.0.13 / 11.0 rc.2) so restore does not pull the rc package onto net10.0. --- .../Devlead.Testing.MockHttp.Tool.Tests.csproj | 2 +- .../Devlead.Testing.MockHttp.Tool.csproj | 2 +- src/Directory.Packages.props | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Devlead.Testing.MockHttp.Tool.Tests/Devlead.Testing.MockHttp.Tool.Tests.csproj b/src/Devlead.Testing.MockHttp.Tool.Tests/Devlead.Testing.MockHttp.Tool.Tests.csproj index 3ecbfe4..a63b0af 100644 --- a/src/Devlead.Testing.MockHttp.Tool.Tests/Devlead.Testing.MockHttp.Tool.Tests.csproj +++ b/src/Devlead.Testing.MockHttp.Tool.Tests/Devlead.Testing.MockHttp.Tool.Tests.csproj @@ -1,7 +1,7 @@ - net11.0 + net11.0;net10.0 latest enable enable diff --git a/src/Devlead.Testing.MockHttp.Tool/Devlead.Testing.MockHttp.Tool.csproj b/src/Devlead.Testing.MockHttp.Tool/Devlead.Testing.MockHttp.Tool.csproj index b1ac980..b88e129 100644 --- a/src/Devlead.Testing.MockHttp.Tool/Devlead.Testing.MockHttp.Tool.csproj +++ b/src/Devlead.Testing.MockHttp.Tool/Devlead.Testing.MockHttp.Tool.csproj @@ -2,7 +2,7 @@ Exe - net11.0 + net11.0;net10.0 enable enable true diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 0e504f3..32ee6ba 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -10,7 +10,8 @@ - + +