This project is read-only.

Roslyn as a replacement for T4?

Topics: APIs, General
Apr 6, 2014 at 7:25 PM
Would it be possible to inject code (source files, classes and interfaces) into a workspace/project, like T4, but using Roslyn instead?

I see there's a namespace called Microsoft.CodeAnalysis.ProjectManagement, but as far as I can tell, it's empty.
Apr 9, 2014 at 4:59 PM
I don't know about that, but it would be certainly be interesting to use Roslyn as a alternative to reflection when it comes to T4.
Apr 17, 2014 at 8:09 PM
I did a project exactly one year ago for some Code Generation into VS task, struggled between T4 and Roslyn and finally the R won. But I do have the feeling that Roslyn might be too powerful for this and T4 is much easier for majority programmers to understand and use properly. So, it really Depends...
Apr 18, 2014 at 5:49 PM
The problem with T4 is that it is so damn hard to debug. Makes me want to scream everytime! :)