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 ProjectInstance.FromFile instead of Project.FromFile + Project.CreateInstance #4504

Merged
merged 1 commit into from Mar 16, 2022

Conversation

dfederm
Copy link
Contributor

@dfederm dfederm commented Mar 15, 2022

Bug

Fixes: NuGet/Home#11675

Regression? Last working version:

Description

At the time Static Graph Restore was created, there was no ProjectInstance.FromFile and no way to create a ProjectInstance with an evaluation context. This was fixed in dotnet/msbuild#5006. So now static graph restore can use that to avoid creating the Project object.

This should be a perf improvement (admittedly minor).

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • N/A
  • Documentation

    • N/A

@dfederm dfederm requested a review from a team as a code owner March 15, 2022 23:47
@ghost ghost added the Community PRs created by someone not in the NuGet team label Mar 15, 2022
nkolev92
nkolev92 previously approved these changes Mar 16, 2022
jeffkl
jeffkl previously approved these changes Mar 16, 2022
@jeffkl
Copy link
Contributor

jeffkl commented Mar 16, 2022

@nkolev92 please merge this. CLA bot isn't working and I messed up CI with a manual build but the real build passed just fine

https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=5889397&view=results

@nkolev92 nkolev92 merged commit fa5955e into NuGet:dev Mar 16, 2022
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
4 participants