问题描述
有一个答案,但显然不支持该方法在Visual Studio 2015 / MSBuild 14中有没有人知道在Visual Studio 2015 / MSBuild 14中执行MSBuild调试的方法?
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调试器从未正式支持,而且,有利于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\to\the.csproj
创建一个包含给定项目的所有构建逻辑的文件)非常强大。您可能还对提供的用户界面感兴趣,这有助于减少由诊断日志。
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\to\the.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中调试项目文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!