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

Consider AssetTargetFallback when selecting transitive project/package dependencies #4372

Merged
merged 6 commits into from
Jan 31, 2022

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Dec 16, 2021

Bug

Fixes: NuGet/Home#5957

Regression? Last working version:

Description

Read design at: https://github.com/NuGet/Home/blob/dev/proposed/2022/AssetTargetFallback-DependenciesResolution.md.

Account for ATF when checking dependencies. There's no new warning being raised if ATF is being used for dependencies.

Note that there's 2 places where these changes are applied, both for Package and project references, SourceRepositoryDependencyProvider and PackageSpecReferenceDependencyProvider respectively.

The ATF warnings in the project reference case are raised by MSBuild calling into https://github.com/NuGet/NuGet.Client/blob/0ca13dff1ebdd33c2f20a66aa059628200a16af9/src/NuGet.Core/NuGet.Build.Tasks/GetReferenceNearestTargetFrameworkTask.cs.

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 force-pushed the dev-nkolev92-atfForDeps branch from 80b7bdb to ba6d660 Compare January 28, 2022 03:37
@nkolev92 nkolev92 marked this pull request as ready for review January 28, 2022 16:43
@nkolev92 nkolev92 requested a review from a team as a code owner January 28, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants