Skip to content

Commit b856428

Browse files
committed
More explanations
1 parent 10c068d commit b856428

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dotnet/src/webdriver/SeleniumManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,17 @@ public static class SeleniumManager
120120
}
121121
}
122122

123-
// Supporting .NET5+ applications deployed as self-contained applications (single file or AOT)
123+
// Supporting .NET5+ applications deployed as bundled applications (single file or AOT).
124+
// In this case bootstrapper extracts the native libraries into a temporary directory.
125+
// Most interesting build properties: "IncludeNativeLibrariesForSelfExtract" and "IncludeAllContentForSelfExtract".
124126
var nativeDllSearchDirectories = AppContext.GetData("NATIVE_DLL_SEARCH_DIRECTORIES")?.ToString();
125127

126128
if (nativeDllSearchDirectories is not null)
127129
{
128130
probingPaths.AddRange(nativeDllSearchDirectories.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).Select(path => Path.Combine(path, seleniumManagerFileName)));
129131
}
130132

131-
// Still falling back to the assembly directory for compatibility with .NET Framework applications
133+
// In .NET 5 and later versions, for bundled assemblies, the value returned is an empty string
132134
var assemblyDirectory = Path.GetDirectoryName(typeof(SeleniumManager).Assembly.Location);
133135

134136
if (assemblyDirectory is not null)

0 commit comments

Comments
 (0)