scripting - Best/Easiest/Quickest way to get relative path between two files? -
i'm in midst of refactoring c# code , part of redo references, because we're redoing folder structure entirely. i'd go .csproj or .sln file , modify paths.
however of references have paths like
"../../../../../../thirdparty/somemicrosoftlibrary/bin/debug/somemicrosoftlibrary.dll
and since we've moved around need find new relative path. absolutely hate trying (figure out how many slashes , periods need put in) since feels hit or miss science.
is there easy way (utility, script, snippet of code) "here's file a, here's file b, relative path of file b in relation file a?"
it's in java, translatable c#.
Comments
Post a Comment