如何在 MSBuild 14.0/VS2015 中调试项目文件? [英] How to debug a project file in MSBuild 14.0 / VS2015?

查看:24
本文介绍了如何在 MSBuild 14.0/VS2015 中调试项目文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 MSBuild 12.0/VS2013 中调试项目文件? 有答案,但显然不支持该方法在 Visual Studio 2015/MSBuild 14 中.有人知道在 Visual Studio 2015/MSBuild 14 中执行 MSBuild 调试的方法吗?获得有关 Visual Studio 2017 的独家新闻的奖励积分.

How to debug a project file in MSBuild 12.0 / VS2013? has an answer, but apparently that method is not supported in Visual Studio 2015/MSBuild 14. Does anyone know a way to perform MSBuild debugging in Visual Studio 2015/MSBuild 14? Bonus points for scoop about Visual Studio 2017.

推荐答案

MSBuild 调试器从未得到官方支持,而是 从 MSBuild 中删除,转而支持 VS 2015/MSBuild 14 时间范围内的跨平台支持.

The MSBuild debugger was never officially supported and was cut from MSBuild in favor of cross-platform support in the VS 2015/MSBuild 14 timeframe.

有很多方法可以调试构建的行为.Verbosity=Diagnostic 构建日志和预处理项目的组合(msbuild/pp:preprocessed.xml path o he.csproj 创建一个包含所有构建的文件给定项目的逻辑)非常强大.您可能还对 MSBuildStructuredLog 提供的 UI 感兴趣,它有助于减少由诊断日志.

There are many ways to debug the behavior of a build. The combination of a Verbosity=Diagnostic build log and the preprocessed project (msbuild /pp:preprocessed.xml path o he.csproj creates a file containing all of the build logic for a given project) is extremely powerful. You may also be interested in the UI that the MSBuildStructuredLog provides, which helps pare down the massive output produced by a diagnostic log.

这篇关于如何在 MSBuild 14.0/VS2015 中调试项目文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆