/// <summary> /// The project reference relative file paths are relative to the project directory, not file path. /// </summary> public static IEnumerable <string> GetProjectReferenceDependencyFilePathsForProjectDirectory(string projectDirectoryPath, IEnumerable <string> projectReferenceRelativeFilePaths) { foreach (var projectReferenceRelativeFilePath in projectReferenceRelativeFilePaths) { var projectFileUnresolvedPath = PathUtilities.Combine(projectDirectoryPath, projectReferenceRelativeFilePath); var projectFilePath = PathUtilities.ResolveFilePath(projectFileUnresolvedPath); yield return(projectFilePath); } }
public static string GetProjectFilePath(string solutionFilePath, string projectRelativeToSolutionDirectoryFilePath) { var solutionDirectoryPath = PathUtilities.GetDirectoryPath(solutionFilePath); var projectFileUnresolvedPath = PathUtilities.Combine(solutionDirectoryPath, projectRelativeToSolutionDirectoryFilePath); var projectFilePath = PathUtilities.ResolveFilePath(projectFileUnresolvedPath); return(projectFilePath); }