From 8aef9ddbae274abf8e75da4395456d750d340fd2 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis <12659251+teo-tsirpanis@users.noreply.github.com> Date: Wed, 8 Apr 2020 19:10:58 +0300 Subject: [PATCH] Remove unnecessary NuGet package references (#5242) Some NuGet packages (such as `System.Net.Http`) do not target .NET Standard 2.0 and reference tons of packages from older .NET Standard versions. The types they contain are already included in .NET Standard 2.0, so they were removed to unburden the package reference graph. --- eng/Packages.props | 2 +- src/Build/Microsoft.Build.csproj | 7 ++----- src/Framework/Microsoft.Build.Framework.csproj | 2 -- src/Samples/Directory.Build.targets | 2 +- src/Tasks/Microsoft.Build.Tasks.csproj | 3 --- 5 files changed, 4 insertions(+), 12 deletions(-) diff --git a/eng/Packages.props b/eng/Packages.props index 9e330c75068..1a98130d455 100644 --- a/eng/Packages.props +++ b/eng/Packages.props @@ -50,7 +50,7 @@ - + diff --git a/src/Build/Microsoft.Build.csproj b/src/Build/Microsoft.Build.csproj index d8ea0d8c500..f90572b462b 100644 --- a/src/Build/Microsoft.Build.csproj +++ b/src/Build/Microsoft.Build.csproj @@ -1,4 +1,4 @@ - + @@ -45,11 +45,8 @@ - - - - + diff --git a/src/Framework/Microsoft.Build.Framework.csproj b/src/Framework/Microsoft.Build.Framework.csproj index 4481e255400..5983457827a 100644 --- a/src/Framework/Microsoft.Build.Framework.csproj +++ b/src/Framework/Microsoft.Build.Framework.csproj @@ -13,9 +13,7 @@ - - diff --git a/src/Samples/Directory.Build.targets b/src/Samples/Directory.Build.targets index 9bc968b044b..78b52aab854 100644 --- a/src/Samples/Directory.Build.targets +++ b/src/Samples/Directory.Build.targets @@ -1,7 +1,7 @@  - + diff --git a/src/Tasks/Microsoft.Build.Tasks.csproj b/src/Tasks/Microsoft.Build.Tasks.csproj index 3b965e74e6d..2f6c3b36597 100644 --- a/src/Tasks/Microsoft.Build.Tasks.csproj +++ b/src/Tasks/Microsoft.Build.Tasks.csproj @@ -987,11 +987,8 @@ - - -