private void TransformProjectFileContents(List <TransformableProject> projects)
 {
     projects.ForEach(p =>
     {
         var doc = new ProjectDocument(p, ParserInfo)
         {
             RootNamespace = p.Name, AssemblyName = p.Name
         };
         WriteProjectReferences(p);
         doc.Write();
     });
 }
 private void WriteProjectReferences(TransformableProject p)
 {
     DocumentedProjects.ForEach(t =>
     {
         var doc       = new ProjectDocument(t, ParserInfo);
         var reference = doc.ProjectReferences.FirstOrDefault(pr => pr.Project.Equals(p.Guid));
         if (reference == null)
         {
             return;
         }
         reference.Include = reference.Include.Replace(p.PreviousName, p.Name);
         reference.Name    = p.Name;
         doc.Write();
     });
 }