提交 c255441a 编写于 作者: J Jared Parsons

BuildBoss needs to handle empty xmlns

Our project files are now a mix of empty XMLNS and official MSBuild
XMLNS. BuildBoss needs to handle both cases.
上级 a019054f
......@@ -43,9 +43,9 @@ internal ProjectUtil(ProjectKey key, XDocument document)
{
Key = key;
Document = document;
Namespace = document.Root.Name.Namespace;
Manager = new XmlNamespaceManager(new NameTable());
Manager.AddNamespace("mb", SharedUtil.MSBuildNamespaceUriRaw);
Namespace = SharedUtil.MSBuildNamespace;
Manager.AddNamespace("mb", Namespace == XNamespace.None ? "" : SharedUtil.MSBuildNamespaceUriRaw);
}
internal RoslynProjectData GetRoslynProjectData()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册