Skip to content

Consider AssetTargetFallback when selecting transitive project/package dependencies - #4372

Merged
nkolev92 merged 6 commits into
devfrom
dev-nkolev92-atfForDeps
Jan 31, 2022
Merged

nkolev92 merged 6 commits into
devfrom
dev-nkolev92-atfForDeps

Conversation

@nkolev92

@nkolev92 nkolev92 commented Dec 16, 2021 •

Copy link
Copy Markdown
Member

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

Development

Successfully merging this pull request may close these issues.

Project A referencing package B via AssetTargetFallback, doesn't use that same AssetTargetFallback to pull B's dependency package C

2 participants