如何在MSBuild任务中获取当前的CodeDomProvider

时间:2022-09-15 19:13:55

I have a task and I want to generate some code using the CodeDom. How can I get either the current "language" or the CodeDomProvider for the current project calling my task?

我有一个任务,我想使用CodeDom生成一些代码。如何获取当前项目的当前“语言”或CodeDomProvider来调用我的任务?

1 个解决方案

#1


Ok I managed to figure it out eventually:

好吧,我最终设法弄清楚了:

Geting a CodeDomProvider in an MSBuild Task

在MSBuild任务中获取CodeDomProvider

#1


Ok I managed to figure it out eventually:

好吧,我最终设法弄清楚了:

Geting a CodeDomProvider in an MSBuild Task

在MSBuild任务中获取CodeDomProvider