Im trying to render Javascript from a T4 template, the javascript should reflect classes that inherit a specific base class. I've gotten this far but the types are unresolved so Im guessing im doing something wrong.
var parse = newCSharpParser();
var tree = Directory.GetFiles(projectPath, "*.cs", SearchOption.AllDirectories)
.Select(f => parse.Parse(File.ReadAllText(f), f).ToTypeSystem());
var project = newCSharpProjectContent();
project.AddOrUpdateFiles(tree);
varcompilation = project.CreateCompilation();
var type = compilation.FindType(newFullTypeName("Commands.Command"));