MSBuild使用\ 2003是什么意思 [英] MSBuild what is meaning of using \2003

查看:182
本文介绍了MSBuild使用\ 2003是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
一位开发人员使用过:
xmlns ="http://schemas.microsoft.com/developer/msbuild/2003"

用于构建msbuild.我的问题是他为什么使用2003?如果我在Win 2008 R2上运行,那么
我需要在2008年更改它吗?

任何建议或答案都表示赞赏.

谢谢

Hi All,
One developer used :
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"

for building msbuild. my question is why he used 2003? if i run on win 2008 r2 then
i need to change it 2008?

any suggestion or answer is appreciated.

Thanks

推荐答案

您知道什么是XML名称空间架构吗?您显示的URI是MSBuild项目文件格式的名称空间URI,与MSBuild的版本无关.
稍微了解一下架构和名称空间,然后自己思考:如果人们每次升级软件都需要新的名称空间,将会发生什么?

不,开发人员不是这样的白痴. MSBuild模式为扩展提供了一些准备,并且命名空间被设计为永久保存,至少在整个构建技术存在并正在开发之时.您在名称空间URI中可以看到的年份是架构发布的年份.您为什么认为它会过时?模式和工具的演变反映在属性ToolsVersion和元素ProductVersionSchemaVersion中.查看一些有效的项目文件以了解其外观.

另请参见:
http://www.w3.org/TR/xml-names11/#concepts [ ^ ],
http://www.w3schools.com/schema/schema_intro.asp [ http://en.wikipedia.org/wiki/Metadata [
Do you know what is the XML namespace schema? The URI you show is a namespace URI for the MSBuild project file format, which has nothing to do with the version of MSBuild.
Learn a bit about the schema and the namespace and think by yourself: what would happen if the new namespace would be required each time people upgraded the software?

No, developers are not such idiots. The MSBuild schema provides some provisions for extension, and the namespace is designed to be the save pretty much forever, at least for the time the whole technology of build exists and is being developed. The year you can see in the namespace URI is the year when the schema was released. Why would you think it should become obsolete? And the evolution of the schema and to tools is reflected in the attribute ToolsVersion and the elements ProductVersion and SchemaVersion. See some valid project files to get an idea how it looks.

See also:
http://www.w3.org/TR/xml-names11/#concepts[^],
http://www.w3schools.com/schema/schema_intro.asp[^],
http://en.wikipedia.org/wiki/Metadata[^].

—SA


这篇关于MSBuild使用\ 2003是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆