http://code.google.com/p/niftyplugins/source/detail?r=84
Modified:
/trunk/Build/Experimental_NiftyPerforce.msi
/trunk/Build/Experimental_NiftySolution.msi
/trunk/NiftySolution/SolutionFiles.cs
=======================================
--- /trunk/Build/Experimental_NiftyPerforce.msi Sun Nov 29 12:54:30 2009
+++ /trunk/Build/Experimental_NiftyPerforce.msi Tue Jun 1 22:40:52 2010
Binary file, no diff available.
=======================================
--- /trunk/Build/Experimental_NiftySolution.msi Sun Nov 29 12:54:30 2009
+++ /trunk/Build/Experimental_NiftySolution.msi Tue Jun 1 22:40:52 2010
Binary file, no diff available.
=======================================
--- /trunk/NiftySolution/SolutionFiles.cs Sun May 3 21:39:23 2009
+++ /trunk/NiftySolution/SolutionFiles.cs Tue Jun 1 22:40:52 2010
@@ -82,27 +82,33 @@
// CPP: {6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}
// H: {6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}
// Folder:{6BB5F8F0-4483-11D3-8BCF-00C04F8EC28C}
-
- if(null!=projectItems)
- {
- foreach(ProjectItem item in projectItems)
- {
- if("{6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}" == item.Kind)
- {
- for(short i = 0; i < item.FileCount; i++)
- {
- string name = item.get_FileNames((short)i);
-
- SearchEntry entry = new SearchEntry();
- entry.fullPath = name;
- entry.key = name.ToLower();
- entry.filename = Path.GetFileName(entry.key);
- m_solutionFiles.Add(entry);
- }
- }
-
- AddProjectItems(item.ProjectItems);
- }
+ //
+ // "{5F422961-1EE4-47EB-A53B-777B4164F8DF}" <-- it's a folder ?
+ if(null == projectItems)
+ return;
+ foreach(ProjectItem item in projectItems)
+ {
+ if("{6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}" == item.Kind)
+ {
+ for(short i = 0; i < item.FileCount; i++)
+ {
+ string name = item.get_FileNames((short)i);
+
+ SearchEntry entry = new SearchEntry();
+ entry.fullPath = name;
+ entry.key = name.ToLower();
+ entry.filename = Path.GetFileName(entry.key);
+ m_solutionFiles.Add(entry);
+ }
+ }
+
+ AddProjectItems(item.ProjectItems);
+
+ if(item.SubProject != null)
+ {
+ AddProjectItems(item.SubProject.ProjectItems);
+ }
+
}
}