调试T4模板在VS2017社区,我不能调试T4模板,它在2015年不能在VS2017
工作我有一个非常基本的模板,像这样......
<#@ template debug="true" hostspecific="false" language="C#" #>
<#@ output extension=".txt" #>
<#
var a = "Hello";
var b = "World";
#>
<#=($"{a} {b}!")#>
Run Custom Tool
和Transform All T4 Templates
两个选项都可以工作,而文本文件包含预期输出
Hello World!
如果我把断点的地方,并使用Debug T4 Template
从.TT的上下文菜单,它抛出这个错误
无法启动改造运行创建过程。
但是,它在VS 2015中正常工作,我可以在那里调试。
我可能会错过什么?如何在VS 2017中调试T4模板?请注意,我没有任何工具/扩展安装在VS2015调试T4
已在即将发布的版本中修复。见Ariel Vang的评论。 https://developercommunity.visualstudio.com/content/problem/46721/unable-to-debug-t4-text-template-in-vs2017.html –