/// <summary> /// Get the file path relative to the project directory of the specified project file path for the specified file path. /// Useful in determining /// </summary> public static string GetProjectDirectoryRelativeFilePath(string projectFilePath, string filePath) { var projectDirectoryPath = PathUtilities.GetDirectoryPath(projectFilePath); var relativeFilePath = PathUtilities.GetRelativePathDirectoryToFile(projectDirectoryPath, filePath); return(relativeFilePath); }
public static string GetProjectFileRelativeToSolutionDirectoryPath(string solutionFilePath, string projectFilePath) { var solutionDirectoryPath = PathUtilities.GetDirectoryPath(solutionFilePath); var solutionDirectoryToDependencyProjectRelativeFilePath = PathUtilities.GetRelativePathDirectoryToFile(solutionDirectoryPath, projectFilePath); return(solutionDirectoryToDependencyProjectRelativeFilePath); }