From 3245166220ced5b6e892086caaa4cdc9e41c0d6f Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Sun, 16 Sep 2007 18:31:24 +0000
Subject: Some more work on passing enough info to nant to make reasonable
release targets
---
Prebuild/src/Core/Nodes/SolutionNode.cs | 14 ++++++++++++++
Prebuild/src/Core/Targets/NAntTarget.cs | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/Prebuild/src/Core/Nodes/SolutionNode.cs b/Prebuild/src/Core/Nodes/SolutionNode.cs
index bbf867e..3ea53a4 100644
--- a/Prebuild/src/Core/Nodes/SolutionNode.cs
+++ b/Prebuild/src/Core/Nodes/SolutionNode.cs
@@ -53,6 +53,7 @@ namespace Prebuild.Core.Nodes
#region Fields
private string m_Name = "unknown";
+ private string m_Version = "1.0.0";
private string m_Path = "";
private string m_FullPath = "";
private string m_ActiveConfig = "Debug";
@@ -110,6 +111,18 @@ namespace Prebuild.Core.Nodes
}
///
+ /// Gets the version.
+ ///
+ /// The version.
+ public string Version
+ {
+ get
+ {
+ return m_Version;
+ }
+ }
+
+ ///
/// Gets the path.
///
/// The path.
@@ -232,6 +245,7 @@ namespace Prebuild.Core.Nodes
public override void Parse(XmlNode node)
{
m_Name = Helper.AttributeValue(node, "name", m_Name);
+ m_Version = Helper.AttributeValue(node, "version", m_Version);
m_ActiveConfig = Helper.AttributeValue(node, "activeConfig", m_ActiveConfig);
m_Path = Helper.AttributeValue(node, "path", m_Path);
diff --git a/Prebuild/src/Core/Targets/NAntTarget.cs b/Prebuild/src/Core/Targets/NAntTarget.cs
index efef949..f9d69dc 100644
--- a/Prebuild/src/Core/Targets/NAntTarget.cs
+++ b/Prebuild/src/Core/Targets/NAntTarget.cs
@@ -492,7 +492,7 @@ public class NAntTarget : ITarget
// sdague - make a zip target
ss.WriteLine(" ");
- ss.WriteLine(" ", solution.Name);
+ ss.WriteLine(" ", solution.Name, solution.Version);
ss.WriteLine(" ");
ss.WriteLine(" ");
--
cgit v1.1