Git Product home page Git Product logo

lightning's Introduction

Microsoft.IoT.Lightning Nuget package

This repository is for generating the Microsoft.IoT.Lightning Nuget package. This package contains code which is compiled into the maker's application which can be deployed to a board running Microsoft Windows IoT Core.

The nuget package is also published periodically to nuget.org. For more information on installing the published nuget package, please refer to https://www.nuget.org/packages/Microsoft.IoT.Lightning/

Additionally, Microsoft.IoT.Lightning depends on Microsoft.IoT.SDKFromArduino nuget package, which contains source files written by the Arduino community. Together these packages ensure compatibility with existing sketches running on Microsoft Windows. For more information on the Arduino SDK, please visit the arduino-sdk GittHub repository.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

##Build the Nuget package Please download the Nuget command line utility nuget.exe into the lightning and arduino-sdk .\source folders. Run the Nuget package builder from the .\source folder:

build-nupkg.cmd

###Nuget Package sources

In order to install nuget packages from your local builds, you'll need to add both the lightning nuget and arduino-sdk to the nuget package manager sources. Following the below instructions for each sdk source:

For Visual Studio Express, nativate to Tools -> Nuget Package Manager -> Package Manager Settings For Other editions of Visual Studio, nativate to Tools -> Library Package Manager -> Package Manager Settings

Package Config

  1. Click the "+" button to add a new source
  2. Set the name to something descriptive
  3. Click the "..." button and navigate to your local sources directory (.\source folder)
  4. Click the "Update" button to save the Package Sources changes

###Nuget Package Manager

In order to install prerelease (current) version of Lightning as well as receive prerelease updates to the Lightning package, make sure to set the "Include prerelease" option in the Nuget Package Manager.

Package Config

  1. Right click References in your project
  2. Click "Manager Nuget Packages..."
  3. Select package sources for Lightning nuget
  4. Click "Include prerelease".
  5. Click "Install" to install the nuget package to your project

###Add required UWP Extensions

The IOT and Desktop UWP SDK Extensions are both required for building Lightning applications.

Package Config

  1. Right click "References" in your Visual C++ UWP Project
  2. Choose "Add Reference..."
  3. Open Universal Windows | Extensions
  4. Choose Both "Windows Desktop Extensions for the UWP" and "Windows IoT Extensions for the UWP".

###Update Application Package manifest

Also, you need to update the Application Package manifest manually to reference the Lightning device interface.

Package Config

  1. Right click "Package.appxmanifest" in your Visual C++ UWP Project
  2. Click "Open With.."
  3. In the "Open With" dialog box, choose XML (Text) Editor and click OK
  4. Edit the the Capabilities section in your application to add the following:
<iot:Capability Name="lowLevelDevices" />
<DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>
  1. The first is a capability that will enable the application to access custom devices.
  2. The second is the device guid id for the Lightning interface
  3. Save the file

Build your project to verify all prerequisites to use Lightning were successfully added.

lightning's People

Contributors

anthony-ngu avatar anthonyngu avatar bertkleewein avatar bfjelds avatar donnmo avatar iotdan avatar jimgaleforce avatar mahmoudgsaleh avatar nicolasbesson avatar ooeygui avatar sidwarkd avatar tiagoshibata avatar turkycat avatar zfields avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.