internal ProjectUtil(ProjectKey key, XDocument document) { _key = key; _document = document; _manager = new XmlNamespaceManager(new NameTable()); _manager.AddNamespace("mb", SharedUtil.MSBuildNamespaceUriRaw); }
internal ProjectData(string filePath) { Key = new ProjectKey(filePath); FilePath = Key.FilePath; Document = XDocument.Load(FilePath); ProjectUtil = new ProjectUtil(Key, Document); }
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); }
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(); }