Exemple #1
0
        async Task CreateDependenciesNode(IUpdatedNuGetPackagesInWorkspace updatedNuGetPackages = null)
        {
            dependenciesNodeBuilder = new TestableDependenciesNodeBuilder();
            dependenciesNode        = new DependenciesNode(project, updatedNuGetPackages ?? PackageManagementServices.UpdatedPackagesInWorkspace);
            dependenciesNode.PackageDependencyCache.PackageDependenciesChanged += PackageDependenciesChanged;
            packageDependenciesChanged = new TaskCompletionSource <bool> ();

            dependenciesNode.PackageDependencyCache.Refresh();
            dependenciesNode.FrameworkReferencesCache.Refresh();

            await WaitForPackageDependenciesChanged();

            dependenciesNodeBuilder.BuildChildNodes(null, dependenciesNode);
            nugetFolderNode      = dependenciesNodeBuilder.PackageDependencies;
            sdkFolderNode        = dependenciesNodeBuilder.SdkDependencies;
            frameworksFolderNode = dependenciesNodeBuilder.FrameworkReferences;
        }
Exemple #2
0
        async Task CreateDependenciesNode()
        {
            dependenciesNodeBuilder = new TestableDependenciesNodeBuilder();
            dependenciesNode        = new DependenciesNode(project);
            dependenciesNode.PackageDependencyCache.PackageDependenciesChanged += PackageDependenciesChanged;
            packageDependenciesChanged = new TaskCompletionSource <bool> ();

            dependenciesNode.PackageDependencyCache.Refresh();
            dependenciesNode.FrameworkReferencesCache.Refresh();

            await WaitForPackageDependenciesChanged();

            dependenciesNodeBuilder.BuildChildNodes(null, dependenciesNode);
            nugetFolderNode      = dependenciesNodeBuilder.PackageDependencies;
            sdkFolderNode        = dependenciesNodeBuilder.SdkDependencies;
            frameworksFolderNode = dependenciesNodeBuilder.FrameworkReferences;
        }