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

use different values for $(TargetPlatformVersion) for TFM and dependency discovery #11718

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Mar 3, 2025

Dependency discovery is a two step process:

  1. Discover a project's TFMs.
  2. For each TFM, discover dependencies.

Several MSBuild properties are set to enable this to work properly for OS-specific situations, but if a value for $(TargetPlatformVersion) is not set, there are two separate values that need to be used as a default. For scenario (1) a default value of 0.0 is required, but for scenario (2) a default value of 1.0 is required. This PR allows each stage of dependency discovery to set the appropriate value.

Fixes #11719.

@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Mar 3, 2025
@brettfo brettfo marked this pull request as ready for review March 3, 2025 19:02
@brettfo brettfo requested a review from a team as a code owner March 3, 2025 19:02
@randhircs randhircs force-pushed the dev/brettfo/nuget-os-tfm-discovery branch from 514d6a9 to 137ccbc Compare March 3, 2025 22:45
@randhircs randhircs merged commit de9aceb into main Mar 3, 2025
98 of 100 checks passed
@randhircs randhircs deleted the dev/brettfo/nuget-os-tfm-discovery branch March 3, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NuGet updater doesn't properly handle -windows TFM suffix
3 participants