How to deploy your mobile app to all emulators at once

It can become very tiresome to have to select a project as the startup project, start it, test it, stop it, and rinse and repeat for iOS, Android, and Windows.  But you do not have to.  You can actually have Visual Studio build and deploy your application to all three at once.

image

The first step is to make sure the selected configuration is configured to build and deploy all three platforms.

  1. Right-click the solution in Solution Explorer
  2. Select Configuration Manager…
  3. Select Debug for Active solution configuration
  4. Select iPhoneSimulator for Active solution platform
  5. Check all the boxes
    image
  6. Click Close

This will make sure that when the debug configuration is selected all versions of the application will be built and prepared to be deployed to the emulators.  Now we need to configure Visual Studio to start multiple projects at once.

  1. Right-click the solution in Solution Explorer
  2. Select Properties
  3. Select Multiple startup projects
  4. For the action of the Droid, iOS, and UWP project, select Start or Start without debugging
    Start
    will attach a debugger and Start without debugging will not.
    image
    You can control the order in which the projects start by using the up and down buttons on the right-hand side of the list.
  5. Click OK

Now all you have to do is click Start in the Standard Toolbar.
image

Before you try this, make sure you have enough memory to run all three emulators at once. If you are using the Hyper-V emulators, some might be turned off if you do not have enough memory. I have had the best luck when I get all three running first by deploying to each separately. Once they are all running, I switch to multiple startup projects.

Add comment

Loading