Skip to content

No longer search for CredentialProviders on an empty path. - #3214

Merged
forki merged 1 commit into
fsprojects:masterfrom
ninjarobot:mono_enumeratefiles_fix
May 23, 2018
Merged

forki merged 1 commit into
fsprojects:masterfrom
ninjarobot:mono_enumeratefiles_fix

Conversation

@ninjarobot

Copy link
Copy Markdown
Contributor

In some unusual scenarios like a paket mkbundle, Path.GetDirectoryName on an Assembly.Location returns an empty string. When that happens, Directory.EnumerateFiles will eventually call Path.InsecureGetFullPath on mono, resulting in this error:

System.ArgumentException: The specified path is not of a legal form (empty).

coming from here.

Switching to String.IsNullOrEmpty addresses that issue.

@forki

forki commented May 23, 2018

Copy link
Copy Markdown
Member

thx

@forki
forki merged commit 8be8743 into fsprojects:master May 23, 2018
@ninjarobot
ninjarobot deleted the mono_enumeratefiles_fix branch May 24, 2018 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants