如何在MSBuild 12.0/VS2013中调试项目文件?有一个答案,但显然在Visual Studio 2015/MSBuild 14中不支持该方法.有没有人知道在Visual Studio 2015/MSBuild 14中执行MSBuild调试的方法?关于Visual Studio 2017的独家新闻奖励积分.
msbuild debugging visual-studio visual-studio-2015 visual-studio-2017
我正在尝试调试使用msbuild的构建过程.我试图遵循这个文件.
我这样做是为了添加所需的注册表项
reg add HKLM\SOFTWARE\Microsoft\MSBuild\4.0 /v DebuggerEnabled /d true
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试msbuild.exe /?
我没有看到调试开关
C:\Program Files (x86)\Microsoft Visual Studio 11.0>msbuild.exe /?
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18063]
Copyright (C) Microsoft Corporation. All rights reserved.
Syntax: MSBuild.exe [options] [project file]
Description: Builds the specified targets in the project file. If
a project file is not specified, MSBuild searches the
current working directory for a file that has a file
extension that ends in "proj" and uses …Run Code Online (Sandbox Code Playgroud)