msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建

msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建

msbuild构建步骤

MSBuild has been open source for a while (over a year now!) and is used to build .NET and .NET Core projects. In fact, MSBuild is used to build the .NET Core Runtime itself.

MSBuild已经开放了一段时间(现已超过一年! ),用于构建.NET和.NET Core项目。 实际上,MSBuild用于构建.NET Core Runtime本身。

msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建

Recently Kirill Osenkov published a new tool called MSBuild Structured Log that makes it easy to visualize your builds and the build process. Install and run MSBuild Structured Log from here.

最近,Kirill Osenkov发布了一个名为MSBuild结构化日志的新工具,该工具可以轻松地可视化您的构建和构建过程。 从此处安装并运行MSBuild结构化日志

It is an MSBuild logger that can be passed to MSBuild during a build and it records information about everything that happens in the build. But instead of just dumping everything into a huge text file it preserves the structure and relationships between elements, and lets you save and open the structured log in .xml format. This has significant advantages to help you understand and navigate large build logs.

它是一个MSBuild记录器,可以在构建过程中传递给MSBuild,它记录有关在构建过程中发生的所有事情的信息。 但是,不仅将所有内容都转储到巨大的文本文件中,它还保留了元素之间的结构和关系,并允许您以.xml格式保存和打开结构化日志。 这具有很大的优势,可以帮助您理解和浏览大型构建日志。

It's easy to install and auto-updates itself. You can open a log file directory or it will build your project and show you the results in a friendly and searchable tree format:

它本身很容易安装和自动更新。 您可以打开一个日志文件目录,否则它将构建您的项目并以友好且可搜索的树格式向您显示结果:

msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建

Here's a more complex multi-project example. You can see what ran, what didn't, dependencies, and the logs themselves.

这是一个更复杂的多项目示例。 您可以查看运行的内容,未运行的内容,依赖关系以及日志本身。

msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建

工具类 (Tools)

There is a great list of MSBuild-related resources and tips and tricks including these tools:

有大量与MSBuild相关的资源以及提示和技巧,包括以下工具:



Sponsor: Many thanks to Stackify for sponsoring the feed this week! Stackify knows developers are the center of the universe. That’s why Stackify built Prefix and will give it out free forever. No .NET profiler is easier, prettier, or more powerful. Build better—now!

赞助商:非常感谢Stackify本周赞助了feed! Stackify知道开发人员是宇宙的中心。 这就是Stackify构建Prefix永久免费提供的原因。 .NET探查器没有一个更简单,更漂亮或更强大。 更好地构建-现在

关于斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建
msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建
msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建
About   关于 Newsletter 时事通讯
Hosting By 主持人
msbuild构建步骤_MSBuild结构化日志:记录和可视化您的构建

翻译自: https://www.hanselman.com/blog/msbuild-structured-log-record-and-visualize-your-builds

msbuild构建步骤