MSBuild 文件是否有标准文件扩展名? [英] Is there a standard file extension for MSBuild files?
问题描述
对于不是项目文件而是更复杂的构建脚本的 MSBuild 文件,是否有标准文件扩展名?
Is there a standard file extension for MSBuild files that are not project files but instead more complex build scripts?
我在考虑 .msbuild.proj 以避免与其他 .proj 文件(我知道它们实际上是 MSBuild 文件)混淆.
I was thinking .msbuild.proj to avoid confusion with other .proj files (which I am aware are actually MSBuild files).
推荐答案
更新:回想起来,我已经更新了答案以包含更多约定.感谢 Sayed Ibrahim Hashimi 和此线程上的其他人.
UPDATE: In retrospect, I've updated the answer to include more conventions. Credit goes to Sayed Ibrahim Hashimi and others on this thread.
通用的流行约定.通常由主构建脚本使用.
A popular convention for generic use. Commonly used by a main build script.
例子:
build.proj
main.proj
company.product.build.proj
<小时>
.targets
.targets
文件是那些打算使用 Import 元素导入其他文件的文件.由于这些文件是严格可重复使用的,它们实际上并没有构建任何东西.他们通常缺少实际构建任何东西的属性和项目值.
.targets
.targets
files are those which is meant to be imported into other files using the Import element. Since these files are strictly re-useable they don't actually build anything. They typically are missing the properties and item values to actually build anything.
例子:
Microsoft.Common.targets
Microsoft.CSharp.targets
Microsoft.Data.Entity.targets
<小时>
.**proj
语言特定约定,其中 **** 表示语言的缩写.
.**proj
Language specific convention where **** represents the language short acronym.
知名扩展:
.csproj | C#
.vbproj | VB.NET
.vcxproj | Visual C++
.dbproj | Database project
.fsproj | F#
.pyproj | IronPython
.rbproj | IronRuby
.wixproj | Windows Installer XML (WiX)
.vdproj | Visual Studio Deployment Project
.isproj | InstallShield
.pssproj | PowerShell
.modelproj | Modeling project
<小时>
.props
例子:
Microsoft.Cl.Common.props
Microsoft.Cpp.CoreWin.props
Microsoft.Cpp.props
Microsoft.Link.Common.props
<小时>
.tasks
调用 MSBuild 项目要导入的通用包含文件.包含 <UsingTask>
元素的列表.
例子:
Microsoft.Common.Tasks
MSBuild.ExtensionPack.tasks
<小时>
.settings.targets
(如果不是严格意义上的文件扩展名,这是一个相关的约定.)
.settings.targets
(This is a related convention if not strictly-speaking a file extension.)
调用 MSBuild 项目要导入的通用包含文件.包含与构建和部署过程中使用的共享实用程序以及任何其他常见设置相关的各种属性"(赛义德·易卜拉欣·哈希米,2009 年).
A common include file to be imported by a calling MSBuild project. Contains "various properties related to shared utilities used during the build and deployment processes as well as any other common settings" (Sayed Ibrahim Hashimi, 2009).
例子:
EntityFramework.settings.targets
一个>
这篇关于MSBuild 文件是否有标准文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!