We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a984c commit 11ec9e1Copy full SHA for 11ec9e1
dotnet/src/webdriver/Internal/FileUtilities.cs
@@ -187,6 +187,7 @@ public static string GetCurrentDirectory()
187
}
188
189
string currentDirectory = location!;
190
+
191
#if !NET8_0_OR_GREATER
192
// If we're shadow copying, get the directory from the codebase instead
193
if (AppDomain.CurrentDomain.ShadowCopyFiles)
@@ -195,7 +196,7 @@ public static string GetCurrentDirectory()
195
196
197
if (codeBase is not null)
198
{
- currentDirectory = Path.GetDirectoryName(codeBase)!;
199
+ currentDirectory = Path.GetDirectoryName(codeBase);
200
201
202
#endif
0 commit comments