Skip to content

Restore causes extra MSBuild evaluations when child projects' TFM do not match with the parent project's #6311

Closed

Description

@emgarten

Restore evaluates child projects using the parent project target framework.

  • This causes extra evaluations when the TFM is different between the parent and child projects, decreasing perf.
  • Potentially this could cause project references to be missed for single TFM child projects if the references are conditioned in a way that will change the result.

This extra iteration isn't needed:
https://github.com/NuGet/NuGet.Client/blob/cf779e8ba381fdef571f351c2956873ce3b5bb66/src/NuGet.Core/NuGet.Build.Tasks/NuGet.targets#L797

Activity

  1. added this to the 4.6 milestone on Dec 13, 2017
  2. changed the title [-]Restore evaluates child projects using the parent project target framework[/-] [+]Restore causes extra MSBuild evaluations when child projects' TFM do not match with the parent project's[/+] on Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions