Author: ankit
Date: 2007-04-27 08:22:49 -0400 (Fri, 27 Apr 2007)
New Revision: 76380
Modified:
trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog
trunk/monodevelop/Extras/prj2make-sharp-lib/SlnFileFormat.cs
Log:
* SlnFileFormat.cs (WriteNestedProjects): Add @root param. Nested
project info should be emitted wrt @root.
Modified: trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog 2007-04-27
09:43:14 UTC (rev 76379)
+++ trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog 2007-04-27
12:22:49 UTC (rev 76380)
@@ -1,3 +1,8 @@
+2007-04-27 Ankit Jain <[EMAIL PROTECTED]>
+
+ * SlnFileFormat.cs (WriteNestedProjects): Add @root param. Nested
+ project info should be emitted wrt @root.
+
2007-04-26 Ankit Jain <[EMAIL PROTECTED]>
* MSBuildFileFormat.cs (GetExportFiles): Implement.
Modified: trunk/monodevelop/Extras/prj2make-sharp-lib/SlnFileFormat.cs
===================================================================
--- trunk/monodevelop/Extras/prj2make-sharp-lib/SlnFileFormat.cs
2007-04-27 09:43:14 UTC (rev 76379)
+++ trunk/monodevelop/Extras/prj2make-sharp-lib/SlnFileFormat.cs
2007-04-27 12:22:49 UTC (rev 76380)
@@ -171,7 +171,7 @@
//Write Nested Projects
sw.WriteLine ("\tGlobalSection(NestedProjects)
= preSolution");
- WriteNestedProjects (c, sw);
+ WriteNestedProjects (c, c, sw);
sw.WriteLine ("\tEndGlobalSection");
//Write 'others'
@@ -309,14 +309,14 @@
}
}
- void WriteNestedProjects (Combine combine, StreamWriter writer)
+ void WriteNestedProjects (Combine combine, Combine root,
StreamWriter writer)
{
foreach (CombineEntry ce in combine.Entries) {
Combine c = ce as Combine;
if (c == null || c.ParentCombine == null)
continue;
- WriteNestedProjects (c, writer);
+ WriteNestedProjects (c, root, writer);
}
SlnData data = (SlnData) combine.ExtendedProperties
[typeof (SlnFileFormat)];
@@ -326,7 +326,6 @@
combine.Name, combine.FileName));
string containerGuid = data.Guid;
- Combine root = combine.RootCombine;
foreach (CombineEntry ce in combine.Entries) {
if (ce.ParentCombine == root)
continue;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches