问题
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