Skip to content

Commit a9575eb

Browse files
committed
Fix package restore for C++/CLI projects
See #9814
1 parent 92466b6 commit a9575eb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/PackageRestore/NuGetRestoreService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ namespace Microsoft.VisualStudio.ProjectSystem.VS.PackageRestore;
1010
[Export(typeof(INuGetRestoreService))]
1111
[Export(ExportContractNames.Scopes.UnconfiguredProject, typeof(IProjectDynamicLoadComponent))]
1212
[AppliesTo(ProjectCapability.PackageReferences)]
13-
[ProjectDynamicLoadComponent(ProjectLoadCheckpoint.AfterLoadInitialConfiguration)]
13+
// Commented out per: https://github.com/dotnet/project-system/issues/9814
14+
//[ProjectDynamicLoadComponent(ProjectLoadCheckpoint.AfterLoadInitialConfiguration)]
1415
internal class NuGetRestoreService : OnceInitializedOnceDisposed, INuGetRestoreService, IProjectDynamicLoadComponent, IVsProjectRestoreInfoSource
1516
{
1617
private readonly UnconfiguredProject _project;

src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/PackageRestore/PackageRestoreDataSource.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ namespace Microsoft.VisualStudio.ProjectSystem.PackageRestore;
1616
[Export(typeof(IPackageRestoreDataSource))]
1717
[Export(ExportContractNames.Scopes.UnconfiguredProject, typeof(IProjectDynamicLoadComponent))]
1818
[AppliesTo(ProjectCapability.PackageReferences)]
19-
[ProjectDynamicLoadComponent(ProjectLoadCheckpoint.ProjectBackgroundLoadCompleted)]
19+
// Commented out per: https://github.com/dotnet/project-system/issues/9814
20+
//[ProjectDynamicLoadComponent(ProjectLoadCheckpoint.ProjectBackgroundLoadCompleted)]
2021
internal partial class PackageRestoreDataSource : ChainedProjectValueDataSourceBase<RestoreData>, IPackageRestoreDataSource, IProjectDynamicLoadComponent
2122
{
2223
// This class represents the last data source in the package restore chain, which is made up of the following:

0 commit comments

Comments
 (0)