Using the RC2 of Microsoft.CodeAnalysis.CSharp.Workspaces in VS2015, this code throws an exception:
var tree = CSharpSyntaxTree.ParseText(...);
var workspace = new AdhocWorkspace();
var newRoot = Simplifier.Expand(tree.GetRoot(),
compilation.GetSemanticModel(tree, false),
workspace,
n => true,
true,
CancellationToken.None);
The exception message is "The language 'C#' is not supported."
What am I missing to make this work?