Skip to content

Commit c4db814

Browse files
authored
Merge pull request #77995 from shizn/patch-4
IoT Edge VS2017 -> 2019
2 parents 5b87835 + 06ebb41 commit c4db814

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

articles/iot-edge/how-to-visual-studio-develop-module.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
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
44
services: iot-edge
55
author: shizn
66
manager: philmea
77

88
ms.author: xshi
9-
ms.date: 04/03/2019
9+
ms.date: 05/27/2019
1010
ms.topic: article
1111
ms.service: iot-edge
1212
ms.custom: seodec18
1313
---
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)
1515

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.
1717

1818
The Azure IoT Edge Tools for Visual Studio provides the following benefits:
1919

@@ -22,7 +22,7 @@ The Azure IoT Edge Tools for Visual Studio provides the following benefits:
2222
- Code your Azure IoT modules in C or C# while having all of the benefits of Visual Studio development.
2323
- Manage Azure IoT Edge devices and modules with UI.
2424

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.
2626

2727
> [!TIP]
2828
> 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
3131

3232
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.
3333

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.
3535

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:
3737

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
3942
4043
- 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.
4144

@@ -69,7 +72,7 @@ After your Visual Studio 2017 is ready, you also need the following tools and co
6972

7073
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**.
7174

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))
7376

7477
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.
7578

@@ -87,11 +90,7 @@ After your Visual Studio 2017 is ready, you also need the following tools and co
8790

8891
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.
8992

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**.
93-
94-
![New Project](./media/how-to-visual-studio-develop-csharp-module/create-new.jpg)
93+
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**.
9594

9695
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.
9796

@@ -118,7 +117,7 @@ When you're ready to customize the module template with your own code, use the [
118117

119118
![Copy Edge Device Connection String](./media/how-to-visual-studio-develop-csharp-module/copy-edge-conn-string.png)
120119

121-
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**.
122121

123122
![Open Set Edge Connection String Window](./media/how-to-visual-studio-develop-csharp-module/set-edge-conn-string.png)
124123

@@ -220,7 +219,7 @@ After you're done developing a single module, you might want to run and debug an
220219
221220
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.
222221
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.
224223

225224
1. In **Cloud Explorer**, expand your subscription, find your Azure IoT Hub and the Azure IoT Edge device you want to deploy.
226225

0 commit comments

Comments
 (0)