IEnumerable<ProjectReference> CreateProjectReferences (MonoDevelop.Projects.DotNetProject p, CancellationToken token) { foreach (var referencedProject in p.GetReferencedAssemblyProjects (IdeApp.Workspace?.ActiveConfiguration ?? MonoDevelop.Projects.ConfigurationSelector.Default)) { if (token.IsCancellationRequested) yield break; if (TypeSystemService.IsOutputTrackedProject (referencedProject)) continue; yield return new ProjectReference (GetOrCreateProjectId (referencedProject)); } }