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 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.
-
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, selectARM
. -
Next, in the Visual Studio toolbar, click on the
Local Machine
dropdown and selectRemote Machine
.
-
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.
-
After entering the device name/IP select
Universal (Unencrypted Protocol)
Authentication Mode, then click Select.
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:
-
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.
-
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).
-
After successfully deploying and debugging your UWP application, create a Release version - change the Visual Studio toolbar configuration dropdown from
Debug
toRelease
. You can now build and deploy your app to your device by selecting Build | Rebuild Solution and Build | Deploy Solution.
-
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, selectARM
. -
Next, in the Visual Studio toolbar, click on the
Local Machine
dropdown and selectRemote Machine
- Next, right click on your project in the Solution Explorer pane. Select Properties.
-
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)
-
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.
-
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).
-
Having successfully deployed and debugged your UWP application, create a Release version - change the Visual Studio toolbar configuration dropdown from
Debug
toRelease
. You can now build and deploy your app to your device by selecting Build | Rebuild Solution and Build | Deploy Solution.
-
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, selectARM
. -
In the Visual Studio toolbar, make sure the target dropdown is set to
Remote Machine
- Next, right click on your project in the Solution Explorer pane. Select Properties.
-
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
-
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.
-
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).
-
Having successfully deployed and debugged your UWP application, create a Release version - change the Visual Studio toolbar configuration dropdown from
Debug
toRelease
. You can now build and deploy your app to your device by selecting Build | Rebuild Solution and Build | Deploy Solution.