diff options
author | Matt Ward <matt.ward@xamarin.com> | 2015-06-03 20:09:58 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@xamarin.com> | 2015-06-03 20:10:48 +0300 |
commit | 7b3ea5095e9568e32e8c6ee6e4d464f186365a09 (patch) | |
tree | d8a6da71af912817775ea4fb810cb4e57a1736f5 /main/src/addins/MonoDevelop.PackageManagement | |
parent | 13676566f72c19d667d12c09d1fd73e8958faa32 (diff) |
[NuGet] Packages folder not updating after package removed.
Fixed bug #30599 - Removing a nuget package does not refresh the
packages list
https://bugzilla.xamarin.com/show_bug.cgi?id=30599
With two or more solutions opened at the same time the Packages folder
would not be updated for all solutions when a NuGet package was
removed. Only projects with one solution would have their Packages
folder in the Solution window updated. The projects in the other
solutions would not update after a NuGet package was removed. This is
because the NuGet addin was not refreshing the Packages folder node
for all solutions currently open.
Diffstat (limited to 'main/src/addins/MonoDevelop.PackageManagement')
-rw-r--r-- | main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.NodeBuilders/ProjectPackagesProjectNodeBuilderExtension.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.NodeBuilders/ProjectPackagesProjectNodeBuilderExtension.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.NodeBuilders/ProjectPackagesProjectNodeBuilderExtension.cs index 8f3a8466e4..9cdccdcf0b 100644 --- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.NodeBuilders/ProjectPackagesProjectNodeBuilderExtension.cs +++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.NodeBuilders/ProjectPackagesProjectNodeBuilderExtension.cs @@ -31,7 +31,6 @@ using MonoDevelop.Core; using MonoDevelop.Ide;
using MonoDevelop.Ide.Gui.Components;
using MonoDevelop.Projects;
-using NuGet;
namespace MonoDevelop.PackageManagement.NodeBuilders
{
@@ -74,17 +73,12 @@ namespace MonoDevelop.PackageManagement.NodeBuilders void RefreshAllChildNodes ()
{
DispatchService.GuiDispatch (() => {
- foreach (IDotNetProject project in PackageManagementServices.Solution.GetDotNetProjects ()) {
- RefreshChildNodes (project.DotNetProject);
+ foreach (DotNetProject project in IdeApp.Workspace.GetAllProjects ()) {
+ RefreshChildNodes (project);
}
});
}
- void RefreshChildNodes (IPackageManagementProject project)
- {
- DispatchService.GuiDispatch (() => RefreshChildNodes (project.DotNetProject));
- }
-
void RefreshChildNodes (DotNetProject project)
{
ITreeBuilder builder = Context.GetTreeBuilder (project);
|