void AddReferenceToProject(ProjectReference assemblyReference) { project.References.Add(assemblyReference); project.Save(); LogAddedReferenceToProject(assemblyReference); }