简体   繁体   English

更改 t4 模板不会消除构建错误

[英]changing t4 template will not remove build error

I have a t4 template that transforms correctly, the cs file has no build errors.我有一个可以正确转换的 t4 模板,cs 文件没有构建错误。 the error window continues to report the error as if the template was not changed.错误 window 继续报告错误,就好像没有更改模板一样。

i ended up running a git clean -fdx to remove any build artifacts.我最终运行了git clean -fdx以删除任何构建工件。 I also don't track the cs files that the templates create.我也不跟踪模板创建的 cs 文件。 after saving the t4 templates i was able to rebuild保存 t4 模板后,我能够重建

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM