Author: ankit
Date: 2007-04-27 08:25:57 -0400 (Fri, 27 Apr 2007)
New Revision: 76381
Modified:
trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog
trunk/monodevelop/Extras/prj2make-sharp-lib/MSBuildSolution.cs
Log:
* MSBuildSolution.cs (UpdateProjectReferences): Remove.
Modified: trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog 2007-04-27
12:22:49 UTC (rev 76380)
+++ trunk/monodevelop/Extras/prj2make-sharp-lib/ChangeLog 2007-04-27
12:25:57 UTC (rev 76381)
@@ -1,5 +1,9 @@
2007-04-27 Ankit Jain <[EMAIL PROTECTED]>
+ * MSBuildSolution.cs (UpdateProjectReferences): Remove.
+
+2007-04-27 Ankit Jain <[EMAIL PROTECTED]>
+
* SlnFileFormat.cs (WriteNestedProjects): Add @root param. Nested
project info should be emitted wrt @root.
Modified: trunk/monodevelop/Extras/prj2make-sharp-lib/MSBuildSolution.cs
===================================================================
--- trunk/monodevelop/Extras/prj2make-sharp-lib/MSBuildSolution.cs
2007-04-27 12:22:49 UTC (rev 76380)
+++ trunk/monodevelop/Extras/prj2make-sharp-lib/MSBuildSolution.cs
2007-04-27 12:25:57 UTC (rev 76381)
@@ -142,7 +142,7 @@
Console.WriteLine ("HandleCombineEntryAdded :
{0}", ex.ToString ());
}
}
-
+
internal static void SetHandlers (Combine combine, bool
setEntries)
{
if (setEntries) {
@@ -176,34 +176,5 @@
}
}
- internal static void UpdateProjectReferences (Combine c, bool
saveProjects)
- {
- CombineEntryCollection allProjects = c.GetAllProjects
();
-
- foreach (Project proj in allProjects) {
- foreach (ProjectReference pref in
proj.ProjectReferences) {
- if (pref.ReferenceType !=
ReferenceType.Project)
- continue;
-
- Project p = (Project) allProjects
[pref.Reference];
-
- //FIXME: Move this to MSBuildFileFormat
?
- MSBuildData data = (MSBuildData)
proj.ExtendedProperties [typeof (MSBuildFileFormat)];
- XmlElement elem =
data.ProjectReferenceElements [pref];
- elem.SetAttribute ("Include",
-
Runtime.FileService.AbsoluteToRelativePath (
- proj.BaseDirectory,
p.FileName));
-
- //Set guid of the ProjectReference
- MSBuildData prefData = (MSBuildData)
p.ExtendedProperties [typeof (MSBuildFileFormat)];
- MSBuildFileFormat.EnsureChildValue
(elem, "Project", MSBuildFileFormat.ns,
- String.Concat ("{",
prefData.Guid, "}"));
-
- }
- if (saveProjects)
- proj.FileFormat.WriteFile
(proj.FileName, proj, new NullProgressMonitor ());
- }
- }
-
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches