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

Close API gap where ProjectInstance ignores ProjectOptions.DirectoryCacheFactory #8746

Merged
merged 1 commit into from
May 16, 2023

Conversation

ladipro
Copy link
Member

@ladipro ladipro commented May 10, 2023

Context

When ProjectOptions.DirectoryCacheFactory was introduced only Project support was implemented. ProjectInstance ignores the field and while currently not a required functionality, it is a minor API gap.

Changes Made

Made ProjectInstance use DirectoryCacheFactory if passed in ProjectOptions.

  • Removed Project.GetDirectoryCacheForEvaluation and instead plumbed the factory all the way down to Evaluator.
  • Tweaked the unit test project to use Condition on Import rather than on ItemGroup to not expose differences between Project and ProjectInstance in the treatment of conditional items.

Testing

Existing updated unit test.

Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go to me

@JaynieBai JaynieBai merged commit 219f685 into dotnet:main May 16, 2023
@ladipro ladipro deleted the projectinstance-directorycache branch June 13, 2023 12:24
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.

4 participants