TFS 2008 构建脚本
在 TFS 2008 中,我尝试修改构建脚本 (TFSBuild.proj)。我收到以下警告:
The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TeamProject' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.
这是正确的,元素 PropertyGroup 确实有一个名为 TeamProject 的子元素。
我假设这是由于以下行引起的:
<Project DefaultTargets="DesktopBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
据我所知,Xml 命名空间似乎不存在,尽管它看起来像标准命名空间。请问谁能告诉我这是否是标准 XML 命名空间、如何或在哪里可以查看其内容以及我看到的警告是否可能是由它引起的?
In TFS 2008, I am trying to modify a build script (TFSBuild.proj). I get the following warning:
The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TeamProject' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.
Which is correct, The element PropertyGroup does indeed have a child called TeamProject.
I’m making an assumption that this is caused because of the following line:
<Project DefaultTargets="DesktopBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
The Xml Namespace doesn’t appear to exist as far as I can tell, although it looks like a standard one. Please can anyone tell me if this is a standard XML namespace, how or where I can view its contents and whether the warning that I am seeing may be caused by it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在 Visual Studio 编辑器中编辑 SCRIPT 文件,它将始终尝试在命名空间中查找丢失的元素。当我使用自定义任务或自定义库时,我有相同的“信息”(不是错误)。解决它的最好方法就是习惯它:)。
请记住,这些只是编辑的警告。
You're editing A SCRIPT file in Visual Studio editor, it will always try to find missing elements in the namespaces. I have the same "infos" (not errors) when I'm using custom tasks or custom libraries. The best way to solve it is to get used to it:).
Remember these are only warnings from the editor.
您的问题的答案可以在此链接中找到< /a>,并总结一下:
The answer to your question can be found at this link, and to summarise: