Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't run app that has a directory that ends in a dot #16162
Originally From @JingLMalan on November 14, 2017 3:21
Steps to reproduce
I install dotnet platform, and it succeed.
What's the matter with it?
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
From @dasMulli on November 14, 2017 4:5
Seems to be reproducible for every built application when any directory in the hierarchy ends with a dot.
This appears to be a coreclr issue per the call stack:
This issue happens because
Windows strips the trailing dot from path segments due to compatibility reasons (a file named "foo." is just "foo" as far as DOS is concerned because file names were stored in 8.3 format). In Unix, the file system does not have any concept of file extension, so "foo" and "foo." are different names.
My first reaction would be to junk the period-trimming-code from this function, but I don't know enough of the Windows environment to know what this could possibly negatively affect. (I know that I can't reproduce the issue anymore if the period-trimming-code is removed, though.)