提交 b84c4473 编写于 作者: G Greg Ingram 提交者: Jose Perez Rodriguez

Added initial iot-device-binding template (#114)

* Added initial iot-device-binding template

* Move to templates folder

* Removed iot from naming

* Added not required note
上级 41b58736
{
"$schema": "http://json.schemastore.org/template",
"author": "IoT Device Binding",
"classifications": [ "IoT", "Console", "Library", "Test" ],
"identity": "DotNet.DeviceBinding.CSharp",
"name": ".NET Core IoT Device Binding Project",
"shortName": "device-binding",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "_DeviceBinding",
"preferNameDirectory": true
}
\ No newline at end of file
# _DeviceBinding
## Summary
Provide a brief description on what the component is and its functonality.
## Device Family
Provide a list of component names and link to datasheets (if available) the binding will work with.
**[Family Name Here]**: [Datasheet link here]
## Binding Notes
Provide any specifics related to binding API. This could include how to configure component for particular functions and example code.
**NOTE**: Don't repeat the basics related to System.Device.API* (e.g. connection settings, etc.). This helps keep text/steps down to a minimum for maintainability.
## References
Provide any references to other tutorials, blogs and hardware related to the component that could help others get started.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Device.Gpio;
using System.Device.I2c;
using System.Device.I2c.Drivers;
using System.Device.Spi;
using System.Device.Spi.Drivers;
namespace Iot.Device._DeviceBinding
{
public class _DeviceBinding : IDisposable
{
public _DeviceBinding()
{
}
public void Dispose()
{
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Remove=".template.config\**" />
<Compile Remove="samples\**" />
<Compile Remove="tests\**" />
<EmbeddedResource Remove=".template.config\**" />
<EmbeddedResource Remove="samples\**" />
<EmbeddedResource Remove="tests\**" />
<None Remove=".template.config\**" />
<None Remove="samples\**" />
<None Remove="tests\**" />
<PackageReference Include="System.Device.Gpio" Version="0.1.0-prerelease*" />
</ItemGroup>
</Project>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Device.Gpio;
using System.Device.I2c;
using System.Device.I2c.Drivers;
using System.Device.Spi;
using System.Device.Spi.Drivers;
using System.Threading;
namespace Iot.Device._DeviceBinding.Samples
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello _DeviceBinding Sample!");
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Device.Gpio" Version="0.1.0-prerelease*" />
</ItemGroup>
</Project>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Xunit;
namespace Iot.Device._DeviceBinding.Tests
{
public class _DeviceBindingTests
{
[Fact]
public void Test1()
{
// NOTE: THIS TEST PROJECT IS NOT REQUIRED AND CAN BE DELETED IF NOT USED.
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<!--
// NOTE: THIS TEST PROJECT IS NOT REQUIRED AND CAN BE DELETED IF NOT USED.
-->
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="System.Device.Gpio" Version="0.1.0-prerelease*" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
</ItemGroup>
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册