private static List<ReferenceCandidate> FindReferenceCandidate(RepositorySet repositorySet, string repositoryName, string projectName)
 {
   List<ReferenceCandidate> found = new List<ReferenceCandidate>();
   ReferenceCandidate lookingFor = new ReferenceCandidate(repositoryName, projectName);
   foreach (ReferenceCandidate candidate in repositorySet.FindAllReferenceCandidates())
   {
     if (candidate.Equals(lookingFor))
     {
       found.Add(candidate);
     }
   }
   return found;
 }
 public static IEnumerable<ProjectReference> FindProjectReferences(RepositorySet repositorySet, Project project, ProjectManifestStore manifestStore)
 {
   foreach (ProjectManifest manifest in manifestStore)
   {
     ProjectFromRepository projectFromRepository = repositorySet.FindProject(manifest.ProjectName);
     if (projectFromRepository == null)
     {
       yield return BrokenProjectReference.MissingProject(manifest);
       continue;
     }
     ArchivedProjectVersion version = projectFromRepository.Project.FindVersionInManifest(manifest);
     if (version == null)
     {
       yield return BrokenProjectReference.MissingVersion(manifest);
       continue;
     }
     ArchivedProjectAndVersion archivedProjectAndVersion = new ArchivedProjectAndVersion(projectFromRepository, version);
     yield return new HealthyProjectReference(project, archivedProjectAndVersion);
   }
 }
Exemplo n.º 3
0
 public CurrentProject(string name, ProjectDirectory rootDirectory, ProjectDirectory buildDirectory, ProjectDirectory libraryDirectory, RepositorySet repositorySet, ProjectManifestStore manifests)
   : base(name, rootDirectory, buildDirectory, libraryDirectory)
 {
   _repositorySet = repositorySet;
   _manifests = manifests;
 }