Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit 55cc989

Browse files
authored
Fixes #419 (#426)
1 parent 821af5c commit 55cc989

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ApiPort.VisualStudio/AnalyzeMenu.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public async Task AnalyzeSelectedProjectsAsync(bool includeDependencies)
4040

4141
public async void SolutionContextMenuItemCallback(object sender, EventArgs e)
4242
{
43-
await AnalyzeProjectsAsync(_dte.Solution.GetProjects().ToList());
43+
await AnalyzeProjectsAsync(_dte.Solution.GetProjects().Where(x => x.IsDotNetProject()).ToList());
4444
}
4545

4646
private async Task AnalyzeProjectsAsync(ICollection<Project> projects)
@@ -102,7 +102,8 @@ private void ContextMenuItemBeforeQueryStatus(object sender, IEnumerable<Project
102102
return;
103103
}
104104

105-
menuItem.Visible = projects.Any() && projects.All(p => p.IsDotNetProject());
105+
106+
menuItem.Visible = projects.Any(p => p.IsDotNetProject());
106107

107108
// Only need to check dependents if menuItem is still visible
108109
if (checkDependencies && menuItem.Visible)

0 commit comments

Comments
 (0)