Home Dashboard Directory Help

C# compiler extensibility by Code Crafter


 as External Help for as External

Sign in
to vote
Type: Suggestion
ID: 530473
Opened: 2/3/2010 10:18:53 AM
Access Restriction: Public


Allow user written compiler extensions to C#.
Sign in to post a comment.
Posted by Microsoft on 7/15/2010 at 3:14 PM
Thanks for your suggestion!

It is certainly interesting to think about pluggable compilation steps. An interesting model is Java's annotation processing tool, which let's user code in the build process examine an object model of the code, including "annotations" (= attributes), and generate new source code based on that. You can imagine other models too.

We are not currently investing directly in this kind of tool, but we may focus on it in the future. For now we are trying to bring our compiler code based into an API that exposes a managed object model - this may take a couple of releases in itself. From there however we have a better shot at extending the code generation model.

Thanks again,

Mads Torgersen, C# Language PM
Posted by Microsoft on 2/4/2010 at 5:44 PM
Thank you for your feedback, we are currently reviewing the feedback you have submitted.
Sign in to post a workaround.