Skip to content

Commit 73f2208

Browse files
authored
Handle empty paths when locating extensions (#7145)
Signed-off-by: Michael Kriese <[email protected]>
1 parent a60358c commit 73f2208

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGet.Clients/NuGet.CommandLine/ExtensionLocator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private static IEnumerable<string> FindAll(
112112
// and among other things breaks our build.
113113
// Consequently, we'll use a convention - only binaries ending in the name Extensions would be loaded.
114114
var nugetDirectory = Path.GetDirectoryName(typeof(Program).Assembly.Location);
115-
if (nugetDirectory == null)
115+
if (string.IsNullOrEmpty(nugetDirectory))
116116
{
117117
return paths;
118118
}

0 commit comments

Comments
 (0)