MIT License

项目介绍

dotnet/msbuild 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 MIT License 许可证,目前获得 5.6k 个 Star、1.5k 次 Fork。

仓库全名
dotnet/msbuild
开源许可证
MIT License
Star 数
5.6k
Fork 数
1.5k
未关闭 Issue
1.8k

README 摘要

Microsoft.Build (MSBuild) 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

msbuild 用什么语言开发?

主要使用 C# 编写,采用 MIT License 许可证,目前有 5.6k 个 Star。

msbuild 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 msbuild 的源码?

可以直接克隆仓库:git clone https://github.com/dotnet/msbuild.git,默认分支为 main;安装与运行步骤见仓库 README。

msbuild 最近还在维护吗?

仓库最近一次更新为 3 小时前,当前有 1.8k 个未关闭 Issue;Star 数为 5.6k,可作为社区活跃度的参考。

简要分析

热度分
8854
价值分
3715
活跃状态
活跃

语言占比

Batchfile
C
C#
C++
PowerShell
Scilab
Shell
XML
XSLT

Release

README

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 2026 on Windows

For the full supported experience, use the latest Visual Studio 2026.

To get started with Visual Studio 2026:

  1. Install Visual Studio 2026 with the components listed in .vsconfig:
    • .NET desktop development workload
  2. Install .NET Framework 3.5. A full MSBuild build includes outputs that require this.
  3. Ensure long path support is enabled at the Windows level.
  4. Open a Developer Command Prompt for VS 2026 prompt.
  5. Clone the source code: git clone https://github.com/dotnet/msbuild
  6. 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.
  7. Open MSBuild.slnx or MSBuild.Dev.slnf in Visual Studio 2026.

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.

评论

暂无评论