public static IEnumerable <string> ListProjectFilePaths(this IVisualStudioSolutionFileOperator visualStudioSolutionFileOperator, SolutionFile solutionFile, string solutionFilePath) { var projectFileSpecifications = visualStudioSolutionFileOperator.ListProjectFileReferences(solutionFile, solutionFilePath); var projectFilePaths = projectFileSpecifications.Select(x => x.ProjectFilePathValue); return(projectFilePaths); }
public static SolutionFileProjectFileReference GetProjectFileSpecification(this IVisualStudioSolutionFileOperator visualStudioSolutionFileOperator, SolutionFile solutionFile, string solutionFilePath, string projectFilePath) { var projectFileSpecifications = visualStudioSolutionFileOperator.ListProjectFileReferences(solutionFile, solutionFilePath); var desiredProjectFileSpecification = projectFileSpecifications.Where(x => x.ProjectFilePathValue == projectFilePath).Single(); return(desiredProjectFileSpecification); }
public static IEnumerable <SolutionFileProjectFileReference> ListProjectFileReferences(this IVisualStudioSolutionFileOperator visualStudioSolutionFileOperator, SolutionFileSite solutionFileSite) { var projectFileSpecifications = visualStudioSolutionFileOperator.ListProjectFileReferences(solutionFileSite.SolutionFile, solutionFileSite.SolutionFilePath); return(projectFileSpecifications); }