NAnt.MSBuild.MSBuildProject.LoadGuid C# (CSharp) Method

LoadGuid() private static method

private static LoadGuid ( XmlElement e, XmlNamespaceManager nm ) : string
e System.Xml.XmlElement
nm System.Xml.XmlNamespaceManager
return string
        private static string LoadGuid(XmlElement e, XmlNamespaceManager nm)
        {
            XmlNode node = e.SelectSingleNode("//x:ProjectGuid", nm);
            if (node == null) return "";
            return node.InnerText;
        }

Same methods

MSBuildProject::LoadGuid ( XmlDocument doc ) : string
MSBuildProject::LoadGuid ( XmlElement e ) : string

Usage Example

示例#1
0
 public string LoadGuid(XmlElement xmlDefinition)
 {
     return(MSBuildProject.LoadGuid(xmlDefinition));
 }