I've just found a bug in my application where Path.GetFullPath()
does not return exactly the same result for different representations of the same path. In this case, ../include
and ../include/
are returning c:\\...\\include
& c:\\...\\include\\
respectively; since I maintain a Dictionary<string,...>
for dir names this breaks things.
How can this be fixed, ideally without nastly kludgy checks on strings but using framework methods?