-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] fix the framework conditionals for Selenium Manager
- Loading branch information
1 parent
73f9351
commit 7be7e2e
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
|
||
#if !NETFRAMEWORK | ||
#if !NET45 && !NET46 && !NET47 | ||
using System.Runtime.InteropServices; | ||
#endif | ||
|
||
|
@@ -70,7 +70,7 @@ private static string Binary | |
{ | ||
if (string.IsNullOrEmpty(binary)) | ||
{ | ||
#if NETFRAMEWORK | ||
#if NET45 || NET46 || NET47 | ||
binary = "selenium-manager/windows/selenium-manager.exe"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
titusfortner
Author
Member
|
||
#else | ||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) | ||
|
Then we need one more condition:
Environment.OSVersion.Platform == PlatformID.Unix