Skip to content

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

Merged
nkolev92 merged 4 commits into
devfrom
dev-nkolev92-asyncifyUnconfiguredProject
Mar 31, 2026
Merged

nkolev92 merged 4 commits into
devfrom
dev-nkolev92-asyncifyUnconfiguredProject

Conversation

@nkolev92

@nkolev92 nkolev92 commented Mar 26, 2026 •

Copy link
Copy Markdown
Member

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
Nigusu-Allehu
Nigusu-Allehu previously approved these changes Mar 31, 2026
@nkolev92
nkolev92 dismissed stale reviews from donnie-msft and Nigusu-Allehu via 76c65fc March 31, 2026 17:28
@nkolev92
nkolev92 force-pushed the dev-nkolev92-asyncifyUnconfiguredProject branch from 77a8a12 to 76c65fc Compare March 31, 2026 17:28
@nkolev92
nkolev92 enabled auto-merge (squash) March 31, 2026 17:29
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

3 participants