From 19db773b5fa427a64013241a8056d253dec34a98 Mon Sep 17 00:00:00 2001 From: Jimmy Lewis Date: Thu, 2 May 2024 09:21:30 -0700 Subject: [PATCH] Drop netstandard for $(NetCoreTFM) Netstandard gives compatibility benefits for libraries to be used against netfx or netcore frameworks. However, for libman, all of our projects that run on netcore already target that framework directly. This change modifies the existing multitargeted projects to target netcore directly instead of netstandard. This will allow future changes to use conditional compilation to leverage newer APIs in netcore that do not exist in the netstandard API surface. The only breaking change here is that the Build project now uses .NET 8 for the build task. This means consumers of that package who are not using .NET Framework will need to have a compatible version of the SDK; however, this aligns with the prior change in the CLI tool to require .NET 8 as well. --- .../Microsoft.Web.LibraryManager.Build.csproj | 5 ++--- .../Microsoft.Web.LibraryManager.Contracts.csproj | 2 +- src/LibraryManager/Microsoft.Web.LibraryManager.csproj | 10 +++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/LibraryManager.Build/Microsoft.Web.LibraryManager.Build.csproj b/src/LibraryManager.Build/Microsoft.Web.LibraryManager.Build.csproj index 53a09b05..0a8b5622 100644 --- a/src/LibraryManager.Build/Microsoft.Web.LibraryManager.Build.csproj +++ b/src/LibraryManager.Build/Microsoft.Web.LibraryManager.Build.csproj @@ -1,6 +1,6 @@  - netstandard2.0;$(NetFxTFM) + $(NetCoreTFM);$(NetFxTFM) True false library, package, client-side, build @@ -16,8 +16,7 @@ - - + diff --git a/src/LibraryManager.Contracts/Microsoft.Web.LibraryManager.Contracts.csproj b/src/LibraryManager.Contracts/Microsoft.Web.LibraryManager.Contracts.csproj index 602d53f7..bb247371 100644 --- a/src/LibraryManager.Contracts/Microsoft.Web.LibraryManager.Contracts.csproj +++ b/src/LibraryManager.Contracts/Microsoft.Web.LibraryManager.Contracts.csproj @@ -1,6 +1,6 @@  - netstandard2.0;$(NetFxTFM) + $(NetCoreTFM);$(NetFxTFM) library, package, client-side True true diff --git a/src/LibraryManager/Microsoft.Web.LibraryManager.csproj b/src/LibraryManager/Microsoft.Web.LibraryManager.csproj index bd24a8b5..d6e07c99 100644 --- a/src/LibraryManager/Microsoft.Web.LibraryManager.csproj +++ b/src/LibraryManager/Microsoft.Web.LibraryManager.csproj @@ -1,6 +1,6 @@  - netstandard2.0;$(NetFxTFM) + $(NetCoreTFM);$(NetFxTFM) True library, package, client-side true @@ -9,11 +9,11 @@ - + - - - + + +