Skip to content

Latest commit

 

History

History
96 lines (65 loc) · 4.39 KB

devbox_setup.md

File metadata and controls

96 lines (65 loc) · 4.39 KB

Prepare your development environment

This document describes how to prepare your development environment to build and use the Microsoft Azure IoT device client SDK for .NET

  1. Prerequisites required to build the SDK
  2. [Optional prerequisites required to test Xamarin and Windows IoT(#advanced)
  3. Test prerequisites

The following prerequisites are the minimum required to build and produce IoT SDK binaries. Visual Studio is not required to build the SDK. This may not be sufficient to run certain samples that require Visual Studio and other SDKs or frameworks installed on your machine.

Windows + .NET Framework

Linux/OSX

Installing Visual Studio 2017 for Xamarin applications

  • Install Visual Studio 2017. You can use the Visual Studio Community Free download if you meet the licensing requirements.
  • During the installation of Visual Studio 2017, we found that selecting the following workloads and components helps in running and debugging the SDK.

Workloads:

Components:

Installing Windows IoT Core SDK

Install the Microsoft IoT Windows Core Project Templates for Visual Studio 2017 from the Extension Marketplace: https://marketplace.visualstudio.com/items?itemName=MicrosoftIoT.WindowsIoTCoreProjectTemplatesforVS15

[Deprecated] Installing .NET Micro Framework

- .NET MicroFramework is no longer supported in the SDK.

Each test project that requires additional changes to your machine contains a prerequisites folder. Please follow the instructions within that folder on how to set-up your machine in order to successfully run our tests.

iothub/service/prerequisites one-time setup (Windows Only)

Run the following as admin: iothub\service\tests\prerequisites\windows_install.cmd

e2e/test/prerequisites

  1. Create copies of the prerequisite scripts in a separate folder (optionally include this folder in your PATH environment variable for easy access.

    • Windows: copy e2e/test/prerequisites/iot_config.cmd_template to a folder in your PATH iot_config.cmd
    • Linux/OSX: copy e2e/test/prerequisites/iot_config.sh_template to iot_config.sh

Do not check-in these files after you have edited them as they contain your account's secrets such as connection strings.

  1. Add the variables to your environment

    • Windows: run iot_config.cmd
    • Linux: dot-source the config file: . iot_config.sh
  2. Run the e2e tests or launch Visual Studio from the same command prompt/terminal.