MSBuild
The build engine behind .NET that reads project files and runs the steps that restore packages, compile code and produce output.
In more detail
Project files, Directory.Build.props and Directory.Packages.props are all MSBuild files written in XML, made of properties and items. dotnet build and dotnet publish call MSBuild for you, so you rarely run it directly.
Related terms
- project file — The XML file, such as Hello.csproj, that tells the build which SDK, target framework, packages and settings a project uses.
- Directory.Build.props — An MSBuild file placed in a folder that every project in that folder and below imports automatically, used for shared build settings.
- dotnet build — The dotnet command that compiles a project or solution and its dependencies into assemblies.
- XML — A text format that stores structured data as nested elements marked with tags in angle brackets, readable by both people and programs.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Records, Pattern Matching, and Modern C# — Modern .NET Core, C# & Enterprise Microservices
- Directory.Build.props, global.json and Central Packages — Modern .NET Core, C# & Enterprise Microservices