Example #1
0
 protected CSharpCompilation GetCompilation(IAssemblySymbol assembly)
 {
     foreach (var project in solution.projects)
     {
         if (assembly.IsEqual(project.compilation.Assembly))
         {
             return(project.compilation);
         }
     }
     throw new Exception("Failed to find CSharpCompilation for assembly: " + assembly.Name);
 }