Skip to content

Latest commit

 

History

History
95 lines (56 loc) · 6.02 KB

File metadata and controls

95 lines (56 loc) · 6.02 KB
title author ms.author ms.date ms.topic description keywords
Deploying an App with Visual Studio
bfjelds
brian.fjeldstad
08/28/2017
article
Learn how to deploy an app using the Visual Studio remote debugging feature.
windows iot, visual studio, app deployment, remote debugging

Deploying an App with Visual Studio

Deploying and debugging your application is straightforward with Visual Studio. We'll use the Remote Debugging feature to deploy the app to your locally connected Windows 10 IoT Core device.

Note

In order to use remote debugging, your IoT Core device must first be connected to same local network as your development PC.
See the Connecting to a device instructions.

Deploy a C# app to your Windows 10 IoT Core device


  1. With the application open in Visual Studio, set the architecture in the toolbar dropdown. If you're building for Minnowboard Max, select x86. If you're building for Raspberry Pi 2, Raspberry Pi 3 or the Dragonboard, select ARM.

  2. Next, in the Visual Studio toolbar, click on the Local Machine dropdown and select Remote Machine.

Remote machine in Visual Studio

  1. At this point, Visual Studio will present the Remote Connections dialog. If you previously used PowerShell to set a unique name for your device, you can enter it here (in this example, we're using my device). Otherwise, use the IP address of your Windows IoT Core device.

  2. After entering the device name/IP select Universal (Unencrypted Protocol) Authentication Mode, then click Select.

Universal authentication mode

You can verify or modify these values by navigating to the project properties (select Properties in the Solution Explorer) and choosing the Debug tab on the left:

Debug tab

  1. Now we're ready to deploy. Simply press F5 (or select Debug | Start Debugging) to start debugging our app. You should see the app come up on your device's screen.

  2. Once deployed, you can set breakpoints, see variable values, etc. To stop the app press on the 'Stop Debugging' button (or select Debug | Stop Debugging).

  3. After successfully deploying and debugging your UWP application, create a Release version - change the Visual Studio toolbar configuration dropdown from Debug to Release. You can now build and deploy your app to your device by selecting Build | Rebuild Solution and Build | Deploy Solution.

Deploy a C++ app to your Windows 10 IoT Core device

  1. With the application open in Visual Studio, set the architecture in the toolbar dropdown. If you're building for Minnowboard Max, select 86. If you're building for Raspberry Pi 2 or 3, select ARM.

  2. Next, in the Visual Studio toolbar, click on the Local Machine dropdown and select Remote Machine

Local machine in Visual Studio

  1. Next, right click on your project in the Solution Explorer pane. Select Properties.

Properties in Visual Studio

  1. Under Configuration Properties -> Debugging, modify the following fields:

    • Machine Name: If you previously used PowerShell to set a unique name for your device, you can enter it here (in this example, we're using my-device). Otherwise, use the IP address of your Windows IoT Core device.
    • Authentication Mode: Set to Universal (Unencrypted Protocol)

Universal authentication mode

  1. Now we're ready to deploy. Simply press F5 (or select Debug | Start Debugging) to start debugging our app. You should see the app come up in Windows IoT Core device screen.

  2. Once deployed, you can set breakpoints, see variable values, etc. To stop the app, press on the 'Stop Debugging' button (or select Debug | Stop Debugging).

  3. Having successfully deployed and debugged your UWP application, create a Release version - change the Visual Studio toolbar configuration dropdown from Debug to Release. You can now build and deploy your app to your device by selecting Build | Rebuild Solution and Build | Deploy Solution.

Deploy a Python app to your Windows 10 IoT Core device

  1. With the application open in Visual Studio, set the architecture in the toolbar dropdown. If you're building for MinnowBoard Max, select x86. If you're building for Raspberry Pi 2 or 3, select ARM.

  2. In the Visual Studio toolbar, make sure the target dropdown is set to Remote Machine

Universal authentication mode

  1. Next, right click on your project in the Solution Explorer pane. Select Properties.

Universal authentication mode

  1. Under UWP Project Settings, modify the following fields:

    • Machine Name: If you previously used PowerShell to set a unique name for your device, you can enter it here (in this example, we're using my-device). Otherwise, use the IP address of your Windows IoT Core device.
    • Remote Port: Set to 5678

Universal authentication mode

  1. Now we're ready to deploy. Simply press F5 (or select Debug | Start Debugging) to start debugging our app.You should see the app come up in Windows IoT Core device screen.

  2. Once deployed, you can set breakpoints, see variable values, etc. To stop the app, press on the 'Stop Debugging' button (or select Debug | Stop Debugging).

  3. Having successfully deployed and debugged your UWP application, create a Release version - change the Visual Studio toolbar configuration dropdown from Debug to Release. You can now build and deploy your app to your device by selecting Build | Rebuild Solution and Build | Deploy Solution.