diff --git a/Prebuild/src/Core/Nodes/SolutionNode.cs b/Prebuild/src/Core/Nodes/SolutionNode.cs index bbf867ebb4..3ea53a4d07 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"; @@ -109,6 +110,18 @@ namespace Prebuild.Core.Nodes } } + /// + /// Gets the version. + /// + /// The version. + public string Version + { + get + { + return m_Version; + } + } + /// /// Gets 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 efef9492c4..f9d69dcb0d 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(" ");