I test the Roslyn API using the Getting Started: Semantic Analysis walkthrough. There is a part that tries to add a compilation link:
var compilation = Compilation.Create("HelloWorld") .AddReferences(new AssemblyNameReference("mscorlib")) .AddSyntaxTrees(tree);
But it looks like the API has changed and "AssemblyNameReference" no longer exists. Or it may be the wrong document, because the name "AddReferences" says that it needs some kind of IEnumerable.
By the way, I'm looking for the right implementation to check it out!
source share