I want to do some very basic code-gen (converting a service API spec to some C# classes for communicating with the service). I found this question that seems to suggest I can call Syntax.CompilationUnit()
to create a new CompilationUnityntax
, however I'm unable to make this code compile; I can't find a CompilationUnit
method on any of the Syntax classes I can find (nor can I locate any docs on this) :(
CSharpSyntaxTree.Create
appears to need a CSharpSyntaxNode
, but I can't figure out how to create one of them either :/
I'm using VS 2015 RC with the latest Microsoft.CodeAnalysis NuGet package (1.0.0-rc2).