The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
Перейти к файлу
Surayya Huseyn Zada 47fb7d5307
[BuildCheck] Fix docs (#10334)
* remove the part where we state that we can analyze binlogs of older  versions of MSBuild

* Update BuildCheck-Architecture.md
2024-07-08 17:14:33 +02:00
.config Add the configuration file for merge flow (#10257) 2024-06-20 12:55:10 +02:00
.github Add the reminder to run VS Perf DDRITs when deployed assemblies change (#9875) 2024-03-22 10:07:59 +08:00
.vscode Add VS Code tasks.json (#7036) 2021-11-15 14:07:24 -08:00
branding Initial commit of branding (#941) 2016-08-24 08:51:47 -07:00
documentation [BuildCheck] Fix docs (#10334) 2024-07-08 17:14:33 +02:00
eng [main] Update dependencies from dotnet/roslyn, nuget/nuget.client (#10284) 2024-07-03 15:37:39 +08:00
scripts Add a job for experimental Framework MSBuild insertion to a pipeline (#9309) 2023-10-12 10:03:38 +02:00
src Update the severities value of BuildCheck results (#10330) 2024-07-04 16:45:55 +02:00
template_feed pack template for custom analyzer (#10155) 2024-05-27 14:24:46 +08:00
.editorconfig Add dispose rule and handle it in solution (production part) (#9983) 2024-04-19 15:06:56 +00:00
.exp-insertions.yml Use System.AccessToken to access drops (#10190) 2024-05-31 15:17:31 +00:00
.git-blame-ignore-revs Add .git-blame-ignore-revs 2023-11-06 11:11:39 -06:00
.gitattributes Switch eng/common to linguist-vendored (#6022) 2021-01-12 16:35:11 -06:00
.gitignore Convert LiveLogger tests to use Verify 2023-05-15 15:24:01 -05:00
.opt-prof.yml update from Windows-10-Enterprise-20H2 to Windows-11-Enterprise-23H2 2024-04-30 15:29:21 +02:00
.vsconfig Remove stale .vsconfig components (#8862) 2023-10-10 16:17:35 +02:00
.vsts-dotnet-ci.yml Check version bump on release branches' update (#10024) 2024-04-19 10:33:49 +00:00
.vsts-dotnet.yml Update the build template (#10299) 2024-06-28 13:24:29 +02:00
Directory.Build.props Cleanup: Remove Mono support (#9745) 2024-02-19 10:44:42 +00:00
Directory.Build.rsp Add Directory.Build.rsp 2018-01-25 10:27:57 -08:00
Directory.Build.targets Condition APICompat workaround on desktop msbuild only (#9797) 2024-02-28 10:52:02 -06:00
LICENSE [master] Update dependencies from dotnet/arcade (#4251) 2019-03-20 21:45:47 +00:00
MSBuild.Dev.slnf Fix bug: No visible message when replaying analyzed build (#10265) 2024-06-20 12:28:24 +00:00
MSBuild.SourceBuild.slnf Add StringTools* projects to solution files 2021-01-20 22:34:05 +01:00
MSBuild.lutconfig Enable Live Unit Testing (#7577) 2022-04-27 11:40:54 -07:00
MSBuild.sln pack template for custom analyzer (#10155) 2024-05-27 14:24:46 +08:00
NuGet.config Add a notification about BuildCheck enabled for the current build (#10261) 2024-07-01 20:15:31 +02:00
README.md Add build status badged public and internal (#10275) 2024-06-21 09:16:09 +02:00
THIRDPARTYNOTICES.txt Update third party notice to include Samples for xUnit.net notice 2018-01-31 18:06:44 -08:00
build.cmd Discourage building with MSBUILDDEBUGONSTART (#4952) 2019-12-10 14:46:41 -08:00
build.sh Use env for bash path (#8716) 2023-05-01 13:31:08 -07:00
global.json Revert "Update dependencies from https://github.com/dotnet/arcade build 20240624.1 (#10285)" (#10292) 2024-06-26 09:49:10 +02:00
testenvironments.json Add testenvironments.json to solution items 2023-01-04 12:08:40 +01:00

README.md

Microsoft.Build (MSBuild)

Build Status Build Status

The Microsoft Build Engine is a platform for building applications. This engine, also known as MSBuild, provides an XML schema for a project file that controls how the build platform processes and builds software. Visual Studio uses MSBuild, but MSBuild can run without Visual Studio. By invoking msbuild.exe on your project or solution file, you can orchestrate and build products in environments where Visual Studio isn't installed.

For more information on MSBuild, see the MSBuild documentation on learn.microsoft.com.

The changelog has detailed information about changes made in different releases.

Building

Building MSBuild with Visual Studio 2022 on Windows

For the full supported experience, you will need to have Visual Studio 2022 or higher.

To get started on Visual Studio 2022:

  1. Install Visual Studio 2022. Select the following Workloads:
    • .NET desktop development
    • .NET Core cross-platform development
  2. Ensure long path support is enabled at the Windows level.
  3. Open a Developer Command Prompt for VS 2022 prompt.
  4. Clone the source code: git clone https://github.com/dotnet/msbuild
  5. Run .\build.cmd from the root of the repo to build the code. This also restores packages needed to open the projects in Visual Studio.
  6. Open MSBuild.sln or MSBuild.Dev.slnf in Visual Studio 2022.

This newly-built MSBuild will be located at artifacts\bin\bootstrap\net472\MSBuild\Current\Bin\MSBuild.exe. It may not work for all scenarios, including C++ builds.

Building MSBuild in Unix (Mac & Linux)

MSBuild can be run on Unix systems that support .NET Core. Set-up instructions can be viewed on the wiki: Building Testing and Debugging on .Net Core MSBuild

Localization

You can turn on localized builds via the /p:LocalizedBuild=true command line argument. For more information on localized builds and how to make contributions to MSBuild's translations, see our localization documentation

Interested in contributing?

Before you contribute, please read through the contributing and developer guides to get an idea of what kinds of pull requests we accept.

Other ways to contribute

We encourage any contributions you decide to make to the repo!

MSBuild Components

  • MSBuild. Microsoft.Build.CommandLine is the entrypoint for the Microsoft Build Engine (MSBuild.exe).

  • Microsoft.Build. The Microsoft.Build namespaces contain types that provide programmatic access to, and control of, the MSBuild engine.

  • Microsoft.Build.Framework. The Microsoft.Build.Framework namespace contains the types that define how tasks and loggers interact with the MSBuild engine. For additional information on this component, see our Microsoft.Build.Framework wiki page.

  • Microsoft.Build.Tasks. The Microsoft.Build.Tasks namespace contains the implementation of all tasks shipping with MSBuild.

  • Microsoft.Build.Utilities. The Microsoft.Build.Utilities namespace provides helper classes that you can use to create your own MSBuild loggers and tasks.

License

MSBuild is licensed under the MIT license.