public void ResolveFrom(IReferencingProject referencingProject, ISolutionContext solution) { foreach (var projectId in _referencedProjectsIds) { try { solution.ResolveReferenceFrom(referencingProject, projectId); } catch (ReferencedProjectNotFoundInSolutionException e) { _support.Report(e); } } }
public void ResolveReferenceFrom(IReferencingProject referencingProject, ProjectId referencedProjectId) { try { var referencedProject = _projectsById[referencedProjectId]; referencingProject.ResolveAsReferencing(referencedProject); referencedProject.ResolveAsReferenceOf(referencingProject); } catch (KeyNotFoundException e) { throw new ReferencedProjectNotFoundInSolutionException( CouldNotFindProjectFor(referencedProjectId, _projectsById), e); } }
public void ResolveAsReferenceOf(IReferencingProject project) { project.AddReferencedProject(_id, this); }
private static Action <ISolutionContext> ResolvingReferencesFrom(IReferencingProject project, ProjectId id2) { return(s => s.ResolveReferenceFrom(project, id2)); }