Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added initial iot-device-binding template #114

Merged
merged 4 commits into from
Jan 3, 2019
Merged

Added initial iot-device-binding template #114

merged 4 commits into from
Jan 3, 2019

Conversation

shaggygi
Copy link
Contributor

@shaggygi shaggygi commented Dec 23, 2018

This is a first attempt at adding a new template project for IotDeviceBindingTemplate.

See #84 for more information as there are some future action items added.

To get started...

  1. Download repo to local machine.
  2. Run cmd below where XXX is the folder you downloaded repo.
    NOTE: This will be improved once a NuGet package is provided.
dotnet new -i "C:\XXX\tools\IotDeviceBindingTemplate\dotnet_new_iot-device-binding_csharp"

You should now be able to see the template installed at this point using dotnet new -l

showingbindingtemplateproject

3. You can now create a new binding by running cmd below where XXX is the location the binding structure will be created.
dotnet new iot-device-binding -o C:\XXX\PioLed -n PioLed

The following structure will be created:

iot/
  src/
    devices/
      PioLed/
        PioLed.csproj
        PioLed.cs
        README.md
        samples/
          PioLed.Sample.csproj
          PioLed.Sample.cs
          README.md
        tests/   <--  Tests are optional (these can be deleted if not needed)
          PioLed.Tests.csproj
          PioLed.Tests.cs
  1. Add and test your binding code.

NOTE: This PR only supports C#, but is hopefully structured to add VB and F# in a future PR.

@joperezr joperezr merged commit b84c447 into dotnet:master Jan 3, 2019
@joperezr
Copy link
Member

joperezr commented Jan 3, 2019

Thanks @shaggygi!

@shaggygi shaggygi deleted the device-binding-template branch January 3, 2019 17:13
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants