|
|
|
@ -6,9 +6,9 @@ using System.IO;
@@ -6,9 +6,9 @@ using System.IO;
|
|
|
|
|
using System.Linq; |
|
|
|
|
using System.Text; |
|
|
|
|
using System.Threading.Tasks; |
|
|
|
|
using EnvDTE80; |
|
|
|
|
using Microsoft.VisualStudio.Shell; |
|
|
|
|
using Mono.Cecil; |
|
|
|
|
using DTEConstants = EnvDTE.Constants; |
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.ILSpy.AddIn.Commands |
|
|
|
|
{ |
|
|
|
@ -98,7 +98,7 @@ namespace ICSharpCode.ILSpy.AddIn.Commands
@@ -98,7 +98,7 @@ namespace ICSharpCode.ILSpy.AddIn.Commands
|
|
|
|
|
protected EnvDTE.Project FindProject(IEnumerable<EnvDTE.Project> projects, string projectFile) |
|
|
|
|
{ |
|
|
|
|
foreach (var project in projects) { |
|
|
|
|
if (project.Kind == ProjectKinds.vsProjectKindSolutionFolder) { |
|
|
|
|
if (project.Kind == DTEConstants.vsProjectKindSolutionItems) { |
|
|
|
|
// This is a solution folder -> search in sub-projects
|
|
|
|
|
var subProject = FindProject( |
|
|
|
|
project.ProjectItems.OfType<EnvDTE.ProjectItem>().Select(pi => pi.SubProject).OfType<EnvDTE.Project>(), |
|
|
|
|