You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/how-to-visual-studio-develop-module.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
2
title: Develop and debug modules in Visual Studio - Azure IoT Edge | Microsoft Docs
3
-
description: Use Visual Studio 2017 to develop and debug modules for Azure IoT Edge
3
+
description: Use Visual Studio 2019 to develop and debug modules for Azure IoT Edge
4
4
services: iot-edge
5
5
author: shizn
6
6
manager: philmea
7
7
8
8
ms.author: xshi
9
-
ms.date: 04/03/2019
9
+
ms.date: 05/27/2019
10
10
ms.topic: article
11
11
ms.service: iot-edge
12
12
ms.custom: seodec18
13
13
---
14
-
# Use Visual Studio 2017 to develop and debug modules for Azure IoT Edge (Preview)
14
+
# Use Visual Studio 2019 to develop and debug modules for Azure IoT Edge (Preview)
15
15
16
-
You can turn your business logic into modules for Azure IoT Edge. This article shows you how to use Visual Studio 2017 as the main tool to develop and debug modules.
16
+
You can turn your business logic into modules for Azure IoT Edge. This article shows you how to use Visual Studio 2019 as the main tool to develop and debug modules.
17
17
18
18
The Azure IoT Edge Tools for Visual Studio provides the following benefits:
19
19
@@ -22,7 +22,7 @@ The Azure IoT Edge Tools for Visual Studio provides the following benefits:
22
22
- Code your Azure IoT modules in C or C# while having all of the benefits of Visual Studio development.
23
23
- Manage Azure IoT Edge devices and modules with UI.
24
24
25
-
This article shows you how to use the Azure IoT Edge Tools for Visual Studio 2017 to develop your IoT Edge modules. You also learn how to deploy your project to your Azure IoT Edge device.
25
+
This article shows you how to use the Azure IoT Edge Tools for Visual Studio 2019 to develop your IoT Edge modules. You also learn how to deploy your project to your Azure IoT Edge device.
26
26
27
27
> [!TIP]
28
28
> The IoT Edge project structure created by Visual Studio is not the same as in Visual Studio Code.
@@ -31,11 +31,14 @@ This article shows you how to use the Azure IoT Edge Tools for Visual Studio 201
31
31
32
32
This article assumes that you use a computer or virtual machine running Windows as your development machine. Your IoT Edge device can be another physical device.
33
33
34
-
Because this article uses Visual Studio 2017 as the main development tool, install Visual Studio. Make sure you include the **Azure development** and **Desktop development with C++** workloads in your Visual Studio 2017 installation. You can [Modify Visual Studio 2017](https://docs.microsoft.com/visualstudio/install/modify-visual-studio?view=vs-2017) to add the required workloads.
34
+
Because this article uses Visual Studio 2019 as the main development tool, install Visual Studio. Make sure you include the **Azure development** and **Desktop development with C++** workloads in your Visual Studio 2019 installation. You can [Modify Visual Studio 2019](https://docs.microsoft.com/visualstudio/install/modify-visual-studio?view=vs-2019) to add the required workloads.
35
35
36
-
After your Visual Studio 2017 is ready, you also need the following tools and components:
36
+
After your Visual Studio 2019 is ready, you also need the following tools and components:
37
37
38
-
- Download and install [Azure IoT Edge extension (Preview)](https://marketplace.visualstudio.com/items?itemName=vsc-iot.vsiotedgetools) from the Visual Studio marketplace to create an IoT Edge project in Visual Studio 2017.
38
+
- Download and install [Azure IoT Edge Tools (Preview)](https://marketplace.visualstudio.com/items?itemName=vsc-iot.vs16iotedgetools) from the Visual Studio marketplace to create an IoT Edge project in Visual Studio 2019.
39
+
40
+
> [!TIP]
41
+
> If you are using Visual Studio 2017, plrease download and install [Azure IoT Edge Tools (Preview)](https://marketplace.visualstudio.com/items?itemName=vsc-iot.vsiotedgetools) for VS 2017 from the Visual Studio marketplace
39
42
40
43
- Download and install [Docker Community Edition](https://docs.docker.com/install/) on your development machine to build and run your module images. You'll need to set Docker CE to run in either Linux container mode or Windows container mode.
41
44
@@ -69,7 +72,7 @@ After your Visual Studio 2017 is ready, you also need the following tools and co
69
72
70
73
1. From the **Tools** menu, select **Extensions and Updates**. Expand **Installed > Tools** and you can find **Azure IoT Edge Tools** and **Cloud Explorer for Visual Studio**.
71
74
72
-
1. Note the installed version. You can compare this version with the latest version on Visual Studio Marketplace ([Cloud Explorer](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.CloudExplorerForVS), [Azure IoT Edge](https://marketplace.visualstudio.com/items?itemName=vsc-iot.vsiotedgetools))
75
+
1. Note the installed version. You can compare this version with the latest version on Visual Studio Marketplace ([Cloud Explorer](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.CloudExplorerForVS2019), [Azure IoT Edge](https://marketplace.visualstudio.com/items?itemName=vsc-iot.vs16iotedgetools))
73
76
74
77
1. If your version is older than what's available on Visual Studio Marketplace, update your tools in Visual Studio as shown in the following section.
75
78
@@ -87,11 +90,7 @@ After your Visual Studio 2017 is ready, you also need the following tools and co
87
90
88
91
The Azure IoT Edge project template in Visual Studio creates a project that can be deployed to Azure IoT Edge devices in Azure IoT Hub. First you create an Azure IoT Edge solution, and then you generate the first module in that solution. Each IoT Edge solution can contain more than one module.
89
92
90
-
1. In Visual Studio, select **New** > **Project** from the **File** menu.
91
-
92
-
1. In the **New Project** dialog, select **Installed**, select **Azure IoT**, select **Azure IoT Edge**, enter a name for your project and specify the location, and then select **OK**. The default project name is **AzureIoTEdgeApp1**.
1. In Visual Studio new project dialog, search and select **Azure IoT Edge**, enter a name for your project and specify the location, and then select **OK**. The default project name is **AzureIoTEdgeApp1**.
95
94
96
95
1. In the **Add IoT Edge Application and Module** window, select **Linux Amd64**, **Windows Amd64**, or both as the application platform. If you select both, you create a solution with two projects that each reference the default code module.
97
96
@@ -118,7 +117,7 @@ When you're ready to customize the module template with your own code, use the [
1.Right-click the**AzureIoTEdgeApp1**project and then click **Set Edge Device Connection String** to open the Azure IoT Edge setup window.
120
+
1.Go to**Tools**> **Azure IoT Edge Tools** > **Setup IoT Edge Simulator**, pasten the connection string and click **OK**.
122
121
123
122

124
123
@@ -220,7 +219,7 @@ After you're done developing a single module, you might want to run and debug an
220
219
221
220
In the quickstart article that you used to set up your IoT Edge device, you deployed a module by using the Azure portal. You can also deploy modules using the Cloud Explorer for Visual Studio. You already have a deployment manifest prepared for your scenario, the `deployment.json` file and all you need to do is select a device to receive the deployment.
222
221
223
-
1. Open **Cloud Explorer** by clicking **View** > **Cloud Explorer**. Make sure you've logged in to Visual Studio 2017.
222
+
1. Open **Cloud Explorer** by clicking **View** > **Cloud Explorer**. Make sure you've logged in to Visual Studio 2019.
224
223
225
224
1. In **Cloud Explorer**, expand your subscription, find your Azure IoT Hub and the Azure IoT Edge device you want to deploy.
0 commit comments