Jumat, 12 Januari 2018

Sponsored Links

Using MSBuild and Team City for Deployments (Part 2 of 4 ...
src: essenceofcode.files.wordpress.com

Microsoft Build Tools (also known as MSBuild and Microsoft Build Engine) is a build tool set for managed code as well as native C++ code and was part of .NET Framework. Visual Studio depends on MSBuild, but MSBuild does not depend on Visual Studio. Visual Studio Application Lifecycle Management depends on MSBuild to perform team builds via the Team Foundation Server.


Video MSBuild



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 available at no cost. MSBuild was previously bundled with .NET Framework; starting with Visual Studio 2013, however, it is bundled with Visual Studio instead. MSBuild is a functional replacement for the nmake utility, the latter of 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 an application), but the utility itself decides what to do and the order in which to do it.

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.


Maps MSBuild



Terminology

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, 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.

visual studio 2010 - bison.exe cannot find file m4sugar.m4 which ...
src: i.stack.imgur.com


See also

  • List of build automation software

Azure Cosmos DB on Twitter:
src: pbs.twimg.com


References


Dallas CSharp SIG - MSBuild Fundamentals
src: www.robusthaven.com


Further reading


visual studio 2015 - The imported project
src: i.stack.imgur.com


External links

  • MSBuild Reference on Microsoft Developer Network
  • Team Foundation Build overview on Microsoft Developer Network
  • MSBuild Extension Pack on CodePlex
  • MSBuild Launch Pad (mPad) on CodePlex
  • MSBuild Shell Extension on GitHub
  • Open Source MSBuild Community Tasks Project on GitHub
  • MSBuild Target Framework and Target Platform on Microsoft Developer Network
  • msbuildbook.com
  • Open Source MSBuild on GitHub
  • Announcement on the release of MSBuild as Open Source

Source of the article : Wikipedia

Comments
0 Comments