Skip to content

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

@nkolev92

Description

@nkolev92

https://github.com/NuGet/NuGet.Client/blob/9131f7118cf739f339ee22fed031c15f0b02128e/src/NuGet.Clients/NuGet.PackageManagement.VisualStudio/Projects/CpsPackageReferenceProjectProvider.cs#L97-L108 casts 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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions