MSBuild
Template:Short description Lua error in package.lua at line 80: module 'Module:Hatnote list' not found.
Page Module:Infobox/styles.css has no content.
| MSBuild | |
|---|---|
| Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found. | |
| [[Programmer|DeveloperTemplate:Pluralize from text]] | Microsoft, .NET Foundation |
| Initial release | 2003 |
| Written in | C# |
| Engine | Page Template:Plainlist/styles.css has no content.Template:EditAtWikidata |
| Operating system | Cross-platform |
| Platform | .NET Framework, .NET |
| Type | Build tool |
| License | MIT License |
| Website | Script error: No such module "WikidataIB". |
| Repository | Page Template:Plainlist/styles.css has no content.
|
Script error: No such module "Check for conflicting parameters".
Microsoft Build Engine, or MSBuild,[2][3] is a set of free and open-source build tools for managed code under the Common Language Infrastructure as well as native C and C++ code. It was first released in 2003 and was a part of .NET Framework. MSBuild is included with Visual Studio, but can also be run independently through MSBuild's command-line interface.[4]
Overview
MSBuild is a build tool that helps automate the process of creating a software product, including compiling the source code, packaging, testing, deployment and creating documentations. With MSBuild, it is possible to build Visual Studio projects and solutions without the Visual Studio IDE installed. MSBuild is free and open-source.[5] MSBuild was previously bundled with .NET Framework; starting with Visual Studio 2013, however, it is bundled with Visual Studio instead.[6] MSBuild is a functional replacement for the nmake utility, which remains in use in projects that originated in older Visual Studio releases.
MSBuild acts on MSBuild project files which have a similar XML syntax to Apache Ant or NAnt. Even though the syntax is based upon well-defined XML schema, the fundamental structure and operation is comparable to the traditional Unix make utility: the user specifies what will be used (typically source code files) and what the result should be (typically a static library, DLL or an executable application), but the utility itself decides what to do and the order in which to carry out the build.
MSBuild can build a project against a supported .NET Framework version of choice. This feature is called "multitargeting". Any given build of a project, however, can only target one version of the framework at a time.[7]
History
MSBuild was first created in 2003 targeting .NET Framework 2.0 for use in Visual Studio 2005 (codenamed Whidbey)[8] and Windows Vista (codenamed Longhorn).[9][10]
Versions
| Version | .NET Framework | Visual Studio Version | Usual Install Locations (x86)[11] |
|---|---|---|---|
| 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[6] | 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[12] | 4.7 | 2017 |
|
| 16.0[13] | 4.7.2 | 2019 |
|
| 17.0[14] | 2022 |
| |
| 18.0 | 2026 |
|
Terminology
Page Module:Message box/ambox.css has no content.
This section may be confusing or unclear to readers. In particular, it is unclear what this section is talking about and what is the nature of, say, a "Target" or "Task". Examples would help. (April 2013) |
- Target
- A Target contains a set of tasks for MSBuild to execute. The focus of MSBuild is the result Target specified when invoking MSBuild with the project file. This is because a Project may contain several Target entries, each executed sequentially (and conditionally). Subsequent dependent Targets are executed before the requested Target. The execution flow of the current Target can be directed using the following attributes: Condition, BeforeTargets, AfterTargets, & DependsOnTargets. Each Target may be self-contained with the necessary Tasks to complete itself. A Target is typically an action executed on a file, set of files or directory.
- Task
- A Task is a command which is executed in order to complete a Target. Tasks are used to group and execute any number of actions during the build process. They are typically implemented in a .NET assembly as a class which inherits from the Task class or implements the ITask interface. Many basic tasks are shipped as part of the .NET Framework,[15] and community developed tasks are freely available. Some examples of Tasks include copying files, creating directories, or parsing XML.
- Properties and Items
- MSBuild provides Properties and Items, which are conceptually equivalent to make's macros. Properties specify static values, whereas Items are usually used to define sets of files or folders on which to perform Tasks. Specifying files on Items is made easy by the support of wildcards.
See also
Lua error in mw.title.lua at line 404: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
References
Page Template:Reflist/styles.css has no content.
- ^ Page Module:Citation/CS1/styles.css has no content."Latest release". Microsoft/msbuild. GitHub. Microsoft. Retrieved 2022-08-20.
- ^ Page Module:Citation/CS1/styles.css has no content."microsoft/msbuild: The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio". GitHub. Microsoft. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content.Hashimi, Sayed Ibrahim; Bartholomew, William (2009). Inside the Microsoft Build Engine: Using MSBuild and Team Foundation Build. Microsoft Press. p. 406. ISBN 978-0-7356-2628-7.
- ^ Page Module:Citation/CS1/styles.css has no content."MSBuild". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content.Lander, Rich (18 March 2015). "MSBuild Engine is now Open Source on GitHub". .NET Blog. MSDN Blogs. Microsoft. Retrieved 2019-07-23.
- ^ a b Page Module:Citation/CS1/styles.css has no content."What's new in MSBuild 12.0". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content."MSBuild multitargeting overview". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content."Building, Testing, and Deployment". What's New in Visual Studio 2005. MSDN. Microsoft. Archived from the original on 2014-08-26.
- ^ Page Module:Citation/CS1/styles.css has no content.Sneath, Tim (July 19, 2004). "MSBuild: The New Build System for Visual Studio 2005 and Longhorn". Tim Sneath. MSDN Blogs. Retrieved 2018-04-22.
- ^ Page Module:Citation/CS1/styles.css has no content.England, Chuck (February 25, 2010). "Getting Started with MSBuild". The Visual Studio Blog. MSDN Blogs. Retrieved 2018-04-22.
- ^ Page Module:Citation/CS1/styles.css has no content."Standard and custom Toolset configurations". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content."What's new in MSBuild 15". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content."What's new in MSBuild 16.0". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
- ^ Page Module:Citation/CS1/styles.css has no content."What's new in MSBuild 17". MSBuild. Microsoft Docs. Retrieved 2026-04-08.
- ^ Page Module:Citation/CS1/styles.css has no content."MSBuild task reference". MSBuild. Microsoft Docs. Retrieved 2019-07-23.
Further reading
Page Template:Refbegin/styles.css has no content.
- Page Module:Citation/CS1/styles.css has no content.Kretzler, Brian (2011). MSBuild Trickery: 99 Ways to Bend the Build Engine to Your Will. K Cross Seven Ranch Company. p. 426. ISBN 978-0-615-50907-5.
- Page Module:Citation/CS1/styles.css has no content.Hashimi, Sayed Ibrahim (June 2006). "Inside MSBuild: Compiling Apps With Custom Tasks For The Microsoft Build Engine". MSDN Magazine. Microsoft. Archived from the original on 11 April 2015. Retrieved 11 April 2013.
- Page Module:Citation/CS1/styles.css has no content.Hashimi, Sayed Ibrahim (March 2007). "WiX Tricks: Automate Releases With MSBuild And Windows Installer XML". MSDN Magazine. Microsoft. Retrieved 11 April 2013.
- Page Module:Citation/CS1/styles.css has no content.Hashimi, Sayed Ibrahim (February 2009). "MSBuild: Best Practices For Creating Reliable Builds, Part 1". MSDN Magazine. Microsoft. Retrieved 11 April 2013.
- Page Module:Citation/CS1/styles.css has no content.Hashimi, Sayed Ibrahim (March 2009). "MSBuild: Best Practices For Creating Reliable Builds, Part 2". MSDN Magazine. Microsoft. Retrieved 11 April 2013.
- Page Module:Citation/CS1/styles.css has no content.Reif, Andreas (10 June 2010). "Einführung in Microsofts Build-Management-Technik MSBuild" [Introduction to Microsoft's build management technology, MSBuild]. heise Developer (in Deutsch). Heinz Heise. Retrieved 11 April 2013.
- Page Module:Citation/CS1/styles.css has no content.Jones, Mike; Warren, Genevieve; Blome, Mike; Robertson, Colin; Hogenson, Gordon; Cai, Saisang (4 November 2016). "MSBuild target framework and target platform". MSBuild. Microsoft Docs. Retrieved 2018-02-19.
External links
- Lua error in Module:Official_website at line 94: attempt to index field 'wikibase' (a nil value).
Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Template:Microsoft FOSS