示例#1
0
 internal ProjectUtil(ProjectKey key, XDocument document)
 {
     _key      = key;
     _document = document;
     _manager  = new XmlNamespaceManager(new NameTable());
     _manager.AddNamespace("mb", SharedUtil.MSBuildNamespaceUriRaw);
 }
示例#2
0
 internal ProjectData(string filePath)
 {
     Key         = new ProjectKey(filePath);
     FilePath    = Key.FilePath;
     Document    = XDocument.Load(FilePath);
     ProjectUtil = new ProjectUtil(Key, Document);
 }
示例#3
0
 internal ProjectUtil(ProjectKey key, XDocument document)
 {
     Key       = key;
     Document  = document;
     Namespace = document.Root.Name.Namespace;
     Manager   = new XmlNamespaceManager(new NameTable());
     Manager.AddNamespace("mb", Namespace == XNamespace.None ? "" : SharedUtil.MSBuildNamespaceUriRaw);
 }
示例#4
0
        internal ProjectUtil(ProjectKey key, XDocument document)
        {
            Key       = key;
            Document  = document;
            Namespace = document.Root.Name.Namespace;
            Manager   = new XmlNamespaceManager(new NameTable());
            Manager.AddNamespace("mb", Namespace == XNamespace.None ? "" : SharedUtil.MSBuildNamespaceUriRaw);

            OutputType = FindSingleProperty("OutputType")?.Value.Trim().ToLowerInvariant();
        }