Forum Xamarin.iOS

Process.Start create an instance of the app instead of running a process

OshriOshri USMember ✭✭
edited March 2017 in Xamarin.iOS

i run the following code and instead of running the package exe (just some command line stuff wrote in .NET) i notice another instance of the existing app
does anyone had this and know how to solve it?

BTW, i printed out the package exe path and it looks OK but still there's a process with the same app name instead of the exec

   if (string.IsNullOrEmpty(package_exe_path))
            return true;


        var psi = new ProcessStartInfo
            FileName = package_exe_path,
            Arguments = arguments,
            UseShellExecute = false,
            CreateNoWindow = true,
            ErrorDialog = false

            var p = Process.Start(psi);

            if (p == null)  

                return false;


  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    I am having difficulty understanding this question. Are you trying to use process to launch a bundle? If you are, then that'd create a second instance of the application, like open -n would on the command line.

    You likely need to use an API from:

  • OshriOshri USMember ✭✭
    I'm trying to run .net console app i created separately
  • OshriOshri USMember ✭✭
    i believe it happens because the app not bundled with the package mono dependencies, ill try bundling it first..
  • OshriOshri USMember ✭✭

    problem that bundling not allowing me to pass arguments to the processes.. :(

  • manasaavmanasaav INMember ✭✭✭

    I have to open notepad file so i was using process.start it may work .

    But what is the namespace for process class & can me send me the link to download

Sign In or Register to comment.