Skip to content

Lazily load unconfigured project only when it's needed#7238

Open
nkolev92 wants to merge 3 commits intodevfrom
dev-nkolev92-asyncifyUnconfiguredProject
Open

Lazily load unconfigured project only when it's needed#7238
nkolev92 wants to merge 3 commits intodevfrom
dev-nkolev92-asyncifyUnconfiguredProject

Conversation

@nkolev92
Copy link
Copy Markdown
Member

@nkolev92 nkolev92 commented Mar 26, 2026

Bug

Fixes: NuGet/Home#14831

Description

We cast the DTE.Project to IVsBrowseObjectContext which forces a project load in C++ project systems.

This is done at solution load time and it's not ideal as C++ tries to support PackageReference in native projects.
We don't need UnconfiguredProject at this time really.
We just need it when we install a package so we can delay this load.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests - Existing tests are fine.
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@nkolev92 nkolev92 marked this pull request as ready for review March 30, 2026 16:51
@nkolev92 nkolev92 requested a review from a team as a code owner March 30, 2026 16:51
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.

UnconfiguredProject load in CPSPackageReferenceProjectProvider forces a C++ projects load from cache

1 participant