Skip to content

Commit

Permalink
Avoid running Process.Start in iOS, tvOS and MacCatalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
jozkee committed May 26, 2021
1 parent b7658b9 commit d3f64eb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ protected static bool CanCreateSymbolicLinks

public static bool CreateSymLink(string targetPath, string linkPath, bool isDirectory)
{
if (OperatingSystem.IsIOS() || OperatingSystem.IsTvOS() || OperatingSystem.IsMacCatalyst()) // OSes that don't support Process.Start()
{
return false;
}

Process symLinkProcess = new Process();
if (OperatingSystem.IsWindows())
{
Expand Down

0 comments on commit d3f64eb

Please sign in to comment.