Fix double quotes in 'pathext' environment variable.

This commit is contained in:
Sridhar Periyasamy 2016-01-15 10:15:26 -08:00
parent 684d9b1d89
commit 82a81cae8d

View file

@ -19,7 +19,9 @@ namespace Microsoft.DotNet.Cli.Utils
{
_executableExtensions = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
? Environment.GetEnvironmentVariable("PATHEXT").Split(';').Select(e => e.ToLower())
? Environment.GetEnvironmentVariable("PATHEXT")
.Split(';')
.Select(e => e.ToLower().Trim('"'))
: new [] { string.Empty };
}