msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

[MSBuild]::MakeRelative works completely incorrect with Unix paths that contains "up-directory" symbol in.

Open rartemev opened this issue 9 years ago • 1 comments

In case [MSBuild]::MakeRelative("\foo\bar\..\abc\cde\", "\foo\bar\..\abc\fff\ggg.hh")

the function returns \foo\bar\abc\fff\ggg.hh

When accorring to https://msdn.microsoft.com/en-us/library/dd633440.aspx the correct result has to be ..\fff\ggg.hh

Note I am using '\' as directory separator because #429 though it has to be '/' for Unix systems.

rartemev avatar Jun 02 '17 22:06 rartemev

@rainersigwald please take a look

rartemev avatar Jun 08 '17 19:06 rartemev