For faster navigation, this Iframe is preloading the Wikiwand page for MSBuild.

MSBuild

MSBuild
開發者微软
首次发布2003年,​21年前​(2003
当前版本
  • 17.3.1 (2022年9月13日)[1]
  • 17.8.3 (2023年11月14日;穩定版本)[2]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言C#
操作系统跨平臺
平台.NET框架.NET
类型組建自動化
许可协议MIT許可證
网站docs.microsoft.com/visualstudio/msbuild/msbuild 编辑维基数据

Microsoft Build Engine(通常简称MSBuild[4] [5])是一个自由且开源构建工具集,适用于托管代码以及原生C++代码,是.NET框架的一部分。Microsoft Visual Studio依赖于 MSBuild,MSBuild也依赖于Visual Studio。 [6]

概述

MSBuild是一套构建工具,用于帮助软件产品创建流程的自动化,包括编译源代码打包、测试、部署和创建文档。使用MSBuild可以在不安装Visual Studio IDE的情况下构建 Visual Studio项目和解决方案。MSBuild是自由且开源的软件。[7] MSBuild曾经是.NET框架的一部分,但从Visual Studio 2013开始成为Visual Studio产品的组件之一。 [8]MSBuild是nmake实用程序在功能上的替代品,不过nmake实用程序仍在源自早期Visual Studio版本的项目中使用。

MSBuild作用于与Apache AntNAnt英语NAnt有相似XML语法的MSBuild项目文件。尽管语法基于定义明确的XML模式,但其基本结构和操作与传统的Unix make实用程序相当:用户指定使用什么(通常是源代码文件)以及结果是什么(通常是静态库、DLL或可执行应用程序),而实用程序本身决定做什么以及执行构建的顺序。

MSBuild可以依照选择来针对其支持的.NET框架版本构建项目,此功能被称为“多目标”。不过,同一时间只能指定一个.NET框架目标版本。[9]

历史

MSBuild的创建始于2003年,针对在Visual Studio 2005(代号Whidbey)[10]Windows Vista(代号Longhorn)中使用的.NET Framework 2.0。[11] [12]

版本

版本 .NET Framework Visual Studio版本 常见安装位置(x86)[13]
2.0 2.0 2005 C:\Windows\Microsoft.NET\Framework\v2.0.50727
3.5 3.5 2008 C:\Windows\Microsoft.NET\Framework\v3.5
4.7.3062.0 4.0 2010 C:\Windows\Microsoft.NET\Framework\v4.0.30319
4.8.3761.0 4.5.2 2012 C:\Windows\Microsoft.NET\Framework\v4.0.30319
12.0[8] 4.5.2 2013 C:\Program Files (x86)\MSBuild\12.0\Bin
14.0 4.6 2015 C:\Program Files (x86)\MSBuild\14.0\Bin
15.0[14] 4.7 2017
  • C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin
  • C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin
  • C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
16.0[15] 4.7.2 2019
  • C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
  • C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
  • C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
17.0 2022
  • C:\Program Files\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin
  • C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin
  • C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin

参见

参考资料

  1. ^ .NET 6.0.9. 2022年9月13日 [2022年10月21日]. 
  2. ^ Release 17.8.3. 2023年11月14日 [2023年11月19日]. 
  3. ^ Latest release. Microsoft/msbuild. GitHub. 微软. [2022-02-15]. 
  4. ^ microsoft/msbuild: The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio. GitHub. Microsoft. [2019-07-23]. (原始内容存档于2015-04-29). 
  5. ^ Hashimi, Sayed Ibrahim; Bartholomew, William. Inside the Microsoft Build Engine: Using MSBuild and Team Foundation Build. Microsoft Press. 2009: 406. ISBN 978-0-7356-2628-7. 
  6. ^ MSBuild. Microsoft Docs. [2019-07-23]. 
  7. ^ Lander, Rich. MSBuild Engine is now Open Source on GitHub. MSDN Blogs. Microsoft. 2015-03-18 [2019-07-23]. (原始内容存档于2021-11-24). 
  8. ^ 8.0 8.1 What's new in MSBuild 12.0. MSBuild. Microsoft Docs英语Microsoft Docs. [2019-07-23]. 
  9. ^ MSBuild multitargeting overview. Microsoft Docs. [2019-07-23]. 
  10. ^ Building, Testing, and Deployment. MSDN. Microsoft. (原始内容存档于2014-08-26). 
  11. ^ Sneath, Tim. MSBuild: The New Build System for Visual Studio 2005 and Longhorn. MSDN Blogs. 2004-07-19 [2018-04-22]. (原始内容存档于2019-12-18). 
  12. ^ England, Chuck. Getting Started with MSBuild. MSDN Blogs. 2010-02-25 [2018-04-22]. (原始内容存档于2019-01-12). 
  13. ^ Standard and custom Toolset configurations. MSBuild. Microsoft Docs英语Microsoft Docs. [2019-07-23]. 
  14. ^ What's new in MSBuild 15. MSBuild. Microsoft Docs英语Microsoft Docs. [2019-07-23]. 
  15. ^ What's new in MSBuild 16.0. MSBuild. Microsoft Docs英语Microsoft Docs. [2019-07-23]. 

拓展阅读

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
MSBuild
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?