Skip to content

Target net9.0 for .NET source build#5511

Merged
jeffkl merged 2 commits intoNuGet:devfrom
mthalman:net9.0
Nov 21, 2023
Merged

Target net9.0 for .NET source build#5511
jeffkl merged 2 commits intoNuGet:devfrom
mthalman:net9.0

Conversation

@mthalman
Copy link
Contributor

Bug

Fixes: NuGet/Home#13018

Regression? Last working version:

Description

For .NET 9, source build is now dependent on a .NET 9 build of the SDK. This causes the build of the NuGet.Client repo to fail because it's still targeting net8.0. These changes update the TFM references to include net9.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

@mthalman mthalman requested a review from a team as a code owner November 17, 2023 16:32
@ghost ghost added the Community PRs created by someone not in the NuGet team label Nov 17, 2023
nkolev92
nkolev92 previously approved these changes Nov 17, 2023
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == '$(NetStandardVersion)' or '$(TargetFramework)' == 'net7.0' or '$(TargetFramework)' == 'net8.0' ">
<ItemGroup Condition=" '$(TargetFramework)' == '$(NetStandardVersion)' or '$(TargetFramework)' == 'net7.0' or '$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0' ">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really build for all t3 here do we?

Maybe replacement is in order instead of just adding an extra condition?

I don't feel super strongly about fixing though, cause this is more on us as NuGet.Client rather than something you'd need to figure out.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use "'$(TargetFrameworkIdentifier)' == '.NETCoreApp' or '$(TargetFrameworkIdentifier)' == '.NETStandard'" here and in all the other places instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NuGet.Client repo needs to support net9.0 TFM

5 participants