Rename to nanoFramework.Device from Devices (#83)

***NO_CI***
This commit is contained in:
José Simões 2022-02-25 10:35:19 +00:00 коммит произвёл GitHub
Родитель d1f4fde83c
Коммит 795d66e85c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
16 изменённых файлов: 60 добавлений и 69 удалений

Просмотреть файл

@ -1,5 +1,5 @@
user=nanoframework
project=nanoFramework.Devices.OneWire
project=nanoFramework.Device.OneWire
issues=true
add_issues_wo_labels=false
add_pr_wo_labels=false

Просмотреть файл

@ -1,3 +0,0 @@
# Contributor Code of Conduct
Please refer to the contributor Code of Conduct at the Home repository [here](https://github.com/nanoframework/Home/blob/master/CODE_OF_CONDUCT.md.

Просмотреть файл

@ -1,3 +0,0 @@
# Contributing to **nanoFramework**
Please refer to the contribution guidelines at the Home repository [here](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md).

Просмотреть файл

@ -1,4 +1,4 @@
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_lib-nanoFramework.Devices.OneWire&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_lib-nanoFramework.Devices.OneWire) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_lib-nanoFramework.Devices.OneWire&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_lib-nanoFramework.Devices.OneWire) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.Devices.OneWire.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.Devices.OneWire/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_nanoFramework.Device.OneWire&metric=alert_status)](https://sonarcloud.io/dashboard?id=nanoframework_nanoFramework.Device.OneWire) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=nanoframework_nanoFramework.Device.OneWire&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=nanoframework_nanoFramework.Device.OneWire) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![NuGet](https://img.shields.io/nuget/dt/nanoFramework.Device.OneWire.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.Device.OneWire/) [![#yourfirstpr](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](https://github.com/nanoframework/Home/blob/master/CONTRIBUTING.md) [![Discord](https://img.shields.io/discord/478725473862549535.svg?logo=discord&logoColor=white&label=Discord&color=7289DA)](https://discord.gg/gCyBu8T)
![nanoFramework logo](https://raw.githubusercontent.com/nanoframework/Home/main/resources/logo/nanoFramework-repo-logo.png)
@ -10,8 +10,8 @@
| Component | Build Status | NuGet Package |
|:-|---|---|
| nanoFramework.Devices.OneWire | [![Build Status](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_apis/build/status/nanoframework.lib-nanoFramework.Devices.OneWire?branchName=develop)](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_build/latest?definitionId=15?branchName=master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.Devices.OneWire.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.Devices.OneWire/) |
| nanoFramework.Devices.OneWire (preview) | [![Build Status](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_apis/build/status/nanoframework.lib-nanoFramework.Devices.OneWire?branchName=develop)](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_build/latest?definitionId=15?branchName=develop) | [![](https://badgen.net/badge/NuGet/preview/D7B023?icon=https://simpleicons.now.sh/azuredevops/fff)](https://dev.azure.com/nanoframework/feed/_packaging?_a=package&feed=sandbox&package=nanoFramework.Devices.OneWire&protocolType=NuGet&view=overview) |
| nanoFramework.Device.OneWire | [![Build Status](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_apis/build/status/nanoframework.nanoFramework.Device.OneWire?branchName=develop)](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_build/latest?definitionId=15?branchName=master) | [![NuGet](https://img.shields.io/nuget/v/nanoFramework.Device.OneWire.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.Device.OneWire/) |
| nanoFramework.Device.OneWire (preview) | [![Build Status](https://dev.azure.com/nanoframework/nanoFramework.Devices.OneWire/_apis/build/status/nanoframework.nanoFramework.Devices.OneWire?branchName=develop)](https://dev.azure.com/nanoframework/nanoFramework.Device.OneWire/_build/latest?definitionId=15?branchName=develop) | [![NuGet](https://img.shields.io/nuget/vpre/nanoFramework.Device.OneWire.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/nanoFramework.Device.OneWire/) |
## Feedback and documentation
@ -21,7 +21,7 @@ Join our Discord community [here](https://discord.gg/gCyBu8T).
## Credits
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/master/CONTRIBUTORS.md).
The list of contributors to this project can be found at [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/main/CONTRIBUTORS.md).
## License

Просмотреть файл

@ -6,7 +6,7 @@
===================================================================================
API docs: https://docs.nanoframework.net/api/nanoFramework.Devices.OneWire.html
API docs: https://docs.nanoframework.net/api/nanoFramework.Device.OneWire.html
Browse our samples repository: https://github.com/nanoframework/samples

Просмотреть файл

@ -41,10 +41,10 @@ pool:
variables:
DOTNET_NOLOGO: true
solution: 'nanoFramework.Devices.OneWire.sln'
solution: 'nanoFramework.Device.OneWire.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
nugetPackageName: 'nanoFramework.Devices.OneWire'
nugetPackageName: 'nanoFramework.Device.OneWire'
steps:
@ -52,7 +52,7 @@ steps:
# all build, update and publish steps
- template: azure-pipelines-templates/class-lib-build.yml@templates
parameters:
sonarCloudProject: 'nanoframework_lib-nanoFramework.Devices.OneWire'
sonarCloudProject: 'nanoframework_lib-nanoFramework.Device.OneWire'
# step from template @ nf-tools repo
# report error

Просмотреть файл

@ -1 +1 @@
**/nanoFramework.Devices.OneWire.*
**/nanoFramework.Device.OneWire.*

Просмотреть файл

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>nanoFramework.Devices.OneWire.DELIVERABLES</id>
<id>nanoFramework.Device.OneWire.DELIVERABLES</id>
<version>$version$</version>
<title>nanoFramework.Devices.OneWire.DELIVERABLES</title>
<title>nanoFramework.Device.OneWire.DELIVERABLES</title>
<authors>nanoframework</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>
@ -13,7 +13,7 @@
<iconUrl>https://secure.gravatar.com/avatar/97d0e092247f0716db6d4b47b7d1d1ad</iconUrl>
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
<description>** DON'T REFERENCE THIS PACKAGE ** Not meant for development. This package includes the deliverable artifacts of the nanoFramework.Devices.OneWire assembly for nanoFramework. These are for testing purposes and for updating the native code base of the library.</description>
<summary>nanoFramework.Devices.OneWire.DELIVERABLES is not meant for development.</summary>
<summary>nanoFramework.Device.OneWire.DELIVERABLES is not meant for development.</summary>
<tags>
</tags>
<dependencies>

Просмотреть файл

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>nanoFramework.Device.OneWire</id>
<version>$version$</version>
<title>nanoFramework.Device.OneWire</title>
<authors>nanoframework</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">LICENSE.md</license>
<releaseNotes>
</releaseNotes>
<readme>docs\README.md</readme>
<developmentDependency>false</developmentDependency>
<projectUrl>https://github.com/nanoframework/nanoFramework.Device.OneWire</projectUrl>
<repository type="git" url="https://github.com/nanoframework/nanoFramework.Device.OneWire" commit="$commit$" />
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
<description>This package includes the nanoFramework.Device.OneWire assembly for .NET nanoFramework C# projects.&#10;This package requires a target with nanoFramework.Device.OneWire v$nativeVersion$ (checksum $checksum$).</description>
<tags>nanoFramework C# csharp netmf netnf OneWire 1wire</tags>
<dependencies>
<dependency id="nanoFramework.CoreLibrary" version="1.12.0-preview.9" />
</dependencies>
</metadata>
<files>
<file src="nanoFramework.Device.OneWire\bin\Release\nanoFramework.Device.OneWire.dll" target="lib\nanoFramework.Device.OneWire.dll" />
<file src="nanoFramework.Device.OneWire\bin\Release\nanoFramework.Device.OneWire.pdb" target="lib\nanoFramework.Device.OneWire.pdb" />
<file src="nanoFramework.Device.OneWire\bin\Release\nanoFramework.Device.OneWire.pdbx" target="lib\nanoFramework.Device.OneWire.pdbx" />
<file src="nanoFramework.Device.OneWire\bin\Release\nanoFramework.Device.OneWire.pe" target="lib\nanoFramework.Device.OneWire.pe" />
<file src="nanoFramework.Device.OneWire\bin\Release\nanoFramework.Device.OneWire.xml" target="lib\nanoFramework.Device.OneWire.xml" />
<!-- readme -->
<file src="assets\readme.txt" target="" />
<file src="README.md" target="docs\" />
<file src="assets\nf-logo.png" target="images" />
<file src="LICENSE.md" target="" />
</files>
</package>

Просмотреть файл

@ -1,14 +1,13 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2046
# Visual Studio Version 17
VisualStudioVersion = 17.1.32210.238
MinimumVisualStudioVersion = 10.0.40219.1
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "nanoFramework.Devices.OneWire", "nanoFramework.Devices.OneWire\nanoFramework.Devices.OneWire.nfproj", "{F09E40CC-F335-4482-8426-33C1D350B11D}"
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "nanoFramework.Device.OneWire", "nanoFramework.Device.OneWire\nanoFramework.Device.OneWire.nfproj", "{F09E40CC-F335-4482-8426-33C1D350B11D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{57190270-AB5A-4794-9674-86002069B655}"
ProjectSection(SolutionItems) = preProject
nanoFramework.Devices.OneWire.DELIVERABLES.nuspec = nanoFramework.Devices.OneWire.DELIVERABLES.nuspec
nanoFramework.Devices.OneWire.nuspec = nanoFramework.Devices.OneWire.nuspec
nanoFramework.Device.OneWire.DELIVERABLES.nuspec = nanoFramework.Device.OneWire.DELIVERABLES.nuspec
nanoFramework.Device.OneWire.nuspec = nanoFramework.Device.OneWire.nuspec
NuGet.Config = NuGet.Config
version.json = version.json
EndProjectSection

Просмотреть файл

@ -7,10 +7,10 @@ using System;
using System.Collections;
using System.Runtime.CompilerServices;
namespace nanoFramework.Devices.OneWire
namespace nanoFramework.Device.OneWire
{
/// <summary>
/// Represents a 1-Wire bus controller. The class provides methods and properties that an app can use to interact with the bus.
/// Represents a 1-Wire bus controller. The class provides methods and properties that an application can use to interact with the 1-Wire bus and connected devices.
/// </summary>
public class OneWireController
{
@ -22,8 +22,6 @@ namespace nanoFramework.Devices.OneWire
// need to create it here to be used in native
private byte[] _serialNumber = new byte[8];
// external One Wire functions from link layer owllu.c
/// <summary>
/// Reset all of the devices on the 1-Wire Net and return the result.
/// </summary>

Просмотреть файл

@ -12,11 +12,11 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<FileAlignment>512</FileAlignment>
<RootNamespace>nanoFramework.Devices.OneWire</RootNamespace>
<AssemblyName>nanoFramework.Devices.OneWire</AssemblyName>
<RootNamespace>nanoFramework.Device.OneWire</RootNamespace>
<AssemblyName>nanoFramework.Device.OneWire</AssemblyName>
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
<NF_IsCoreLibrary>True</NF_IsCoreLibrary>
<DocumentationFile>bin\$(Configuration)\nanoFramework.Devices.OneWire.xml</DocumentationFile>
<DocumentationFile>bin\$(Configuration)\nanoFramework.Device.OneWire.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
@ -30,8 +30,8 @@
<PropertyGroup>
<!-- override default options for MetaDataProcessor -->
<NF_GenerateStubsDirectory>bin\$(Configuration)\Stubs</NF_GenerateStubsDirectory>
<NF_GenerateSkeletonProjectName>nf_devices_onewire_native</NF_GenerateSkeletonProjectName>
<Name>nanoFramework.Devices.OneWire</Name>
<NF_GenerateSkeletonProjectName>nf_device_onewire_native</NF_GenerateSkeletonProjectName>
<Name>nanoFramework.Device.OneWire</Name>
</PropertyGroup>
<ItemGroup>
<NFMDP_PE_ExcludeClassByName Include="ThisAssembly">

Просмотреть файл

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>nanoFramework.Devices.OneWire</id>
<version>$version$</version>
<title>nanoFramework.Devices.OneWire</title>
<authors>nanoframework</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">LICENSE.md</license>
<releaseNotes>
</releaseNotes>
<readme>docs\README.md</readme>
<developmentDependency>false</developmentDependency>
<projectUrl>https://github.com/nanoframework/nanoFramework.Devices.OneWire</projectUrl>
<repository type="git" url="https://github.com/nanoframework/nanoFramework.Devices.OneWire" commit="$commit$" />
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
<description>This package includes the nanoFramework.Devices.OneWire assembly for nanoFramework C# projects.&#10;This package requires a target with nanoFramework.Devices.OneWire v$nativeVersion$ (checksum $checksum$).</description>
<tags>nanoFramework C# csharp netmf netnf OneWire 1wire</tags>
<dependencies>
<dependency id="nanoFramework.CoreLibrary" version="1.12.0-preview.9" />
</dependencies>
</metadata>
<files>
<file src="nanoFramework.Devices.OneWire\bin\Release\nanoFramework.Devices.OneWire.dll" target="lib\nanoFramework.Devices.OneWire.dll" />
<file src="nanoFramework.Devices.OneWire\bin\Release\nanoFramework.Devices.OneWire.pdb" target="lib\nanoFramework.Devices.OneWire.pdb" />
<file src="nanoFramework.Devices.OneWire\bin\Release\nanoFramework.Devices.OneWire.pdbx" target="lib\nanoFramework.Devices.OneWire.pdbx" />
<file src="nanoFramework.Devices.OneWire\bin\Release\nanoFramework.Devices.OneWire.pe" target="lib\nanoFramework.Devices.OneWire.pe" />
<file src="nanoFramework.Devices.OneWire\bin\Release\nanoFramework.Devices.OneWire.xml" target="lib\nanoFramework.Devices.OneWire.xml" />
<!-- readme -->
<file src="assets\readme.txt" target="" />
<file src="README.md" target="docs\" />
<file src="assets\nf-logo.png" target="images" />
<file src="LICENSE.md" target="" />
</files>
</package>