Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove netstandard2.0 and netcoreapp3.1 legs for projects that only work as distribution vehicles, NuGet.Build.Tasks, NuGet.Build.Tasks.Console, NuGet.Commandline.Xplat and Microsoft.Build.NugetSdkResolver #5098

Merged
merged 5 commits into from
Mar 20, 2023

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Mar 16, 2023

Bug

Fixes: NuGet/Home#12489

Regression? Last working version:

Description

These projects are only used as distribution vehicles for building the .NET SDK. We don't really need all the frameworks in there.
I have removed 4 of these frameworks + their respective test projects.
This removes 10 build/restore legs, speeding up our build and removing the # of tests we have.

I didn't go as far as NuGet/Home#9886. One change at a time :)

Here are the before and after of frameworks. I'm only including the deltas. Note that I checked the dotnet build from source as well.

Before:
Microsoft.Build.NuGetSdkResolver.csproj = net472;netstandard2.0;netcoreapp5.0
NuGet.Build.Tasks.Console.csproj = net472;netcoreapp3.1;netcoreapp5.0
NuGet.Build.Tasks.csproj = net472;netstandard2.0;netcoreapp5.0
NuGet.CommandLine.XPlat.csproj = net472;netcoreapp3.1;netcoreapp5.0
NuGet.XPlat.FuncTest.csproj = net472;netcoreapp3.1;netcoreapp5.0
Microsoft.Build.NuGetSdkResolver.Test.csproj = net472;netcoreapp3.1;netcoreapp5.0
NuGet.Build.Tasks.Console.Test.csproj = net472;netcoreapp3.1;netcoreapp5.0
NuGet.Build.Tasks.Test.csproj = net472;netcoreapp3.1;netcoreapp5.0
NuGet.CommandLine.Xplat.Tests.csproj = net472;netcoreapp3.1;netcoreapp5.0

After:

Microsoft.Build.NuGetSdkResolver.csproj = net472;netcoreapp5.0
NuGet.Build.Tasks.Console.csproj = net472;netcoreapp5.0
NuGet.Build.Tasks.csproj = net472;netcoreapp5.0
NuGet.CommandLine.XPlat.csproj = net472;netcoreapp5.
NuGet.XPlat.FuncTest.csproj = net472;netcoreapp5.0
Microsoft.Build.NuGetSdkResolver.Test.csproj = net472;netcoreapp5.0
NuGet.Build.Tasks.Console.Test.csproj = net472;netcoreapp5.0
NuGet.Build.Tasks.Test.csproj = net472;netcoreapp5.0
NuGet.CommandLine.Xplat.Tests.csproj = net472;netcoreapp5.0

DotnetBuildFromSource="true"

Before:
NuGet.XPlat.FuncTest.csproj = net472;net7.0;net7.0
Microsoft.Build.NuGetSdkResolver.Test.csproj = net472;net7.0;net7.0
NuGet.Build.Tasks.Console.Test.csproj = net472;net7.0;net7.0
NuGet.Build.Tasks.Test.csproj = net472;net7.0;net7.0
NuGet.CommandLine.Xplat.Tests.csproj = net472;net7.0;net7.0
Microsoft.Build.NuGetSdkResolver.csproj = net7.0;netstandard2.0;net7.0
NuGet.Build.Tasks.Console.csproj = net472;net7.0;net7.0
NuGet.Build.Tasks.csproj = net7.0;netstandard2.0;net7.0
NuGet.CommandLine.XPlat.csproj = net472;net7.0;net7.0

After:
NuGet.XPlat.FuncTest.csproj = net472;netcoreapp5.0;net7.0
Microsoft.Build.NuGetSdkResolver.Test.csproj = net472;netcoreapp5.0;net7.0
NuGet.Build.Tasks.Console.Test.csproj = net472;netcoreapp5.0;net7.0
NuGet.Build.Tasks.Test.csproj = net472;netcoreapp5.0;net7.0
NuGet.CommandLine.Xplat.Tests.csproj = net472;netcoreapp5.0;net7.0
Microsoft.Build.NuGetSdkResolver.csproj = net472;netcoreapp5.0;net7.0
NuGet.Build.Tasks.Console.csproj = net472;netcoreapp5.0;net7.0
NuGet.Build.Tasks.csproj = net472;netcoreapp5.0;net7.0
NuGet.CommandLine.XPlat.csproj = net472;netcoreapp5.0;net7.0

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@nkolev92 nkolev92 requested a review from a team as a code owner March 16, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants