How to debug a project file in MSBuild 12.0 / VS2013?

前端 未结 1 780
天涯浪人
天涯浪人 2020-12-16 19:57

Tracing a project was easy in MSBuild 4.0 / VS2010, all you had to do was set registry key which enabled an msbuild /debug command line option. The debugger would launch an

相关标签:
1条回答
  • 2020-12-16 20:15

    Add the DebuggerEnabled registry value (with data true) to the following key(s) (the key in the blog post is out of date).

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\12.0 (64-bit systems) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\12.0 (32-bit systems, or if somehow running MSBuild 64-bit)

    See also:

    • https://stackoverflow.com/a/27450702/704808
    • https://connect.microsoft.com/VisualStudio/feedback/details/1029251/cannot-debug-msbuild-project-script-file#commentContainer
    0 讨论(0)
提交回复
热议问题