Debugging T4 Template in VS 2010 Crashes IDE

后端 未结 5 1388
刺人心
刺人心 2021-02-04 05:08

I\'m trying to debug a slightly-modified version of the ADO.NET POCO Entity Generator template using the directions Oleg Sych published a few years back. I modified th

5条回答
  •  日久生厌
    2021-02-04 05:48

    Final solution which works for me:

    regedit:

    Key (x86 systems): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework

    Key (x64 systems): HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework

    value: DbgJITDebugLaunchSetting

    data: 0x2

    tt template:

    <#@ template debug="true" hostSpecific="true"  #>
    <# System.Diagnostics.Debugger.Launch(); System.Diagnostics.Debugger.Break(); #>
    

提交回复
热议问题