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

IsMSBuildProject() public static method

public static IsMSBuildProject ( XmlElement e ) : bool
e System.Xml.XmlElement
return bool
        public static bool IsMSBuildProject(XmlElement e)
        {
            if (e.LocalName == "Project" &&
                e.NamespaceURI.StartsWith("http://schemas.microsoft.com/developer/msbuild")
                )
                return true;
            return false;
        }

Same methods

MSBuildProject::IsMSBuildProject ( XmlDocument doc ) : bool

Usage Example

Ejemplo n.º 1
0
 public int IsSupported(string projectExt, XmlElement xmlDefinition)
 {
     if (MSBuildProject.IsMSBuildProject(xmlDefinition))
     {
         return(20);
     }
     return(0);
 }