private bool UninstallApp(string packageFamilyName, string targetDevice)
        {
            // Connection info
            var connectInfo = new BuildDeployPortal.ConnectInfo(targetDevice, BuildDeployPrefs.DeviceUser, BuildDeployPrefs.DevicePassword);

            // Kick off the install
            Debug.Log("Uninstall build: " + targetDevice);
            return(BuildDeployPortal.UninstallApp(packageFamilyName, connectInfo));
        }
        private bool InstallApp(string buildPath, string appName, string targetDevice)
        {
            // Get the appx path
            FileInfo[] files = (new DirectoryInfo(buildPath)).GetFiles("*.appx");
            files = (files.Length == 0) ? (new DirectoryInfo(buildPath)).GetFiles("*.appxbundle") : files;
            if (files.Length == 0)
            {
                Debug.LogError("No APPX found in folder build folder (" + buildPath + ")");
                return(false);
            }

            // Connection info
            var connectInfo = new BuildDeployPortal.ConnectInfo(targetDevice, BuildDeployPrefs.DeviceUser, BuildDeployPrefs.DevicePassword);

            // Kick off the install
            Debug.Log("Installing build on: " + targetDevice);
            return(BuildDeployPortal.InstallApp(files[0].FullName, connectInfo));
        }