MSBuild文件是否有标准文件扩展名? [英] Is there a standard file extension for MSBuild files?

查看:103
本文介绍了MSBuild文件是否有标准文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于不是项目文件而是更复杂的构建脚本的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).

推荐答案

UPDATE:回想起来,我已经更新了答案,以包含更多约定.值得赞扬的是说易卜拉欣(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

Visual C ++项目使用的项目属性表().


.props

A project property sheet used by Visual C++ projects (.vcxproj).

示例:

Microsoft.Cl.Common.props
Microsoft.Cpp.CoreWin.props
Microsoft.Cpp.props
Microsoft.Link.Common.props


.tasks

将由调用MSBuild项目导入的通用包含文件.包含<UsingTask>元素的列表.


.tasks

A common include file to be imported by a calling MSBuild project. Contains a list of <UsingTask> elements.

示例:

Microsoft.Common.Tasks
MSBuild.ExtensionPack.tasks


.settings.targets

(如果不严格讲文件扩展名,这是一个相关约定.)


.settings.targets

(This is a related convention if not strictly-speaking a file extension.)

将由调用MSBuild项目导入的通用包含文件.包含与在构建和部署过程中使用的共享实用程序相关的各种属性,以及任何其他常用设置" (

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

Compiler.settings.targets

Library.Settings.targets

这篇关于MSBuild文件是否有标准文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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