/// <summary> /// Returns the relative path from the containing IProject to the directory of this IReference. /// Example: Foo\Bar /// </summary> public static string GetRelativeDir(this IReference reference) { var relativePath = reference.GetRelativePath(); if (string.IsNullOrEmpty(relativePath)) { return(string.Empty); } else { return(Path.GetDirectoryName(relativePath)); } }
/// <summary> /// Returns the relative path from the containing IProject to this IReference. /// Example: Foo\Bar\ThisReference.dll /// </summary> public static string GetRelativePath(this IReference reference) { return(reference.GetRelativePath(reference.Project)); }