How can I get the current CodeDomProvider in an MSBuild Task

北城余情 提交于 2019-12-11 14:29:31

问题


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?


回答1:


Ok I managed to figure it out eventually:

Geting a CodeDomProvider in an MSBuild Task



来源:https://stackoverflow.com/questions/395313/how-can-i-get-the-current-codedomprovider-in-an-msbuild-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!