nanoFramework.CoreLibrary 1.17.11

Prefix Reserved
dotnet add package nanoFramework.CoreLibrary --version 1.17.11
                    
NuGet\Install-Package nanoFramework.CoreLibrary -Version 1.17.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.CoreLibrary" Version="1.17.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.CoreLibrary" Version="1.17.11" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.CoreLibrary" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.CoreLibrary --version 1.17.11
                    
#r "nuget: nanoFramework.CoreLibrary, 1.17.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=nanoFramework.CoreLibrary&version=1.17.11
                    
Install nanoFramework.CoreLibrary as a Cake Addin
#tool nuget:?package=nanoFramework.CoreLibrary&version=1.17.11
                    
Install nanoFramework.CoreLibrary as a Cake Tool

Quality Gate Status Reliability Rating License NuGet #yourfirstpr Discord

nanoFramework logo


Welcome to the .NET nanoFramework Base Class Library repository

Build status

Component Build Status NuGet Package
Base Class Library Build Status NuGet
Base Class Library w/o reflection Build Status NuGet

BCL Flavours

The .NET nanoFramework Base Class Library is provided in two flavours: with or without support for System.Reflection namespace. The reason for this is that the reflection API adds up a significant size to the DLL and image size. For targets with smaller flash this can be prohibitive.

Unit Test

nanoFramework has a dedicated Unit Test framework. This repository has Unit Test and you will find all of them under the Tests folder. The main solution embed all all the tests as well. You can run them directly from Visual Studio and create new tests. For more information on the Unit Test Framework.

CoreLibrary has specific needs that differ from what you'll find in the documentation:

  • You need to have the nanoFramework.TestFramework as a NuGet package as it will bring the nanoCLR Win32 emulator
  • You need to remove the reference to mscorlib, nanoFramework.TestFramework and nanoFramework.UnitTestLauncher
  • Use project reference instead for all those 3 elements

You can then run the test either on a real device, either in the emulator as described in the documentation. You may have to manually flash your device for the mscorlib version to match the one you are building on.

Important: Any new code checked in this repository will have to:

  • have a proper test covering for all the methods, properties, events and the possible exceptions,
  • do not break more of the the existing tests meaning, in other words, it should not create more issues than already existing.

Test structure and project reference

All the projects are referenced based and to be able to run the tests in the pipeline, in command line and in Visual Studio, it does require a specific structure:

  • The NFUnitTestAdapter project must be present and untouched. It does contains the core elements needed to have the nanoCLR Win32 application present.
  • You need to have a nano.runsettings file in each sub directory you want to run the tests on from Visual Studio
  • If you want to run the tests in command line you have to use the Developer Command Prompt for VS 2019 then you can use from the home cloned lib-CoreLibrary directory a command line like this one:
vstest.console.exe .\Tests\NFUnitTestBitConverter\bin\Release\NFUnitTest.dll  /Settings:.\Tests\NFUnitTestAdapater\nano.runsettings /TestAdapterPath:.\nanoFramework.TestFramework\source\TestAdapter\bin\Debug\net4.8 /Diag:.\log.txt /Logger:trx

Notes:

  • You have to build the TestAdapter from the source in this case. You can use the path to the NuGet as well, this will have the same effect.
  • you have full diagnostic enabled in this case.

Feedback and documentation

For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.

Join our Discord community here.

Credits

The list of contributors to this project can be found at CONTRIBUTORS.

License

The nanoFramework Class Libraries are licensed under the MIT license.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (350)

Showing the top 5 NuGet packages that depend on nanoFramework.CoreLibrary:

Package Downloads
nanoFramework.Runtime.Events

This package includes the nanoFramework.Runtime.Events assembly for nanoFramework C# projects. This package requires a target with nanoFramework.Runtime.Events v100.0.8.0 (checksum 0x0EAB00C9).

nanoFramework.System.Device.I2c

This package includes the System.Device.I2c assembly for nanoFramework C# projects. This package requires a target with System.Device.I2c v100.0.0.2 (checksum 0xFA806D33).

nanoFramework.System.Math

This package includes the nanoFramework.System.Math assembly for .NET nanoFramework C# projects. This package requires a target with System.Math v100.0.5.5 (checksum 0x9F9E2A7E).

nanoFramework.System.Device.Gpio

This package includes the System.Device.Gpio assembly for .NET nanoFramework C# projects. This package requires a target with System.Device.Gpio v100.1.0.6 (checksum 0x097E7BC5).

nanoFramework.System.Text

This package includes the System.Text assembly for nanoFramework C# projects. This package requires a target with System.Text v100.0.0.1 (checksum 0x8E6EB73D).

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on nanoFramework.CoreLibrary:

Repository Stars
dotnet/samples
Sample code referenced by the .NET documentation
angularsen/UnitsNet
Makes life working with units of measurement just a little bit better.
Azure/amqpnetlite
AMQP 1.0 .NET Library
nanoframework/Samples
🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours
nanoframework/nanoFramework.IoT.Device
📦 This repo includes .NET nanoFramework implementations for various sensors, chips, displays, hats and drivers
Version Downloads Last updated
1.17.11 8,591 7 days ago
1.17.7 13,573 a month ago
1.17.1 21,270 2 months ago
1.16.11 24,491 2 months ago
1.16.1 11,395 2 months ago
1.15.5 204,901 11/9/2023
1.14.2 310,586 12/22/2022
1.14.1 2,558 12/22/2022
1.12.0 1,158,615 3/30/2022
1.12.0-preview.19 1,541 3/17/2022
1.12.0-preview.18 1,378 3/14/2022
1.12.0-preview.9 2,708 2/17/2022
1.12.0-preview.5 3,454 1/28/2022
1.12.0-preview.1 1,188 1/20/2022
1.11.7 56,805 12/2/2021
1.11.7-preview.14 194 1/20/2022
1.11.6 581 12/2/2021
1.11.6-preview.2 792 11/30/2021
1.10.5 77,887 7/13/2021
1.10.5-preview.18 2,635 6/19/2021
1.10.5-preview.13 1,406 6/7/2021
1.10.5-preview.10 1,335 6/3/2021
1.10.5-preview.4 992 5/31/2021
1.10.4-preview.11 4,716 5/19/2021
1.10.4-preview.6 260 5/19/2021
1.10.4-preview.4 726 5/13/2021
1.10.3-preview.20 1,024 5/4/2021
1.10.3-preview.7 3,441 3/21/2021
1.10.1-preview.11 1,991 3/2/2021
1.10.1-preview.9 3,888 1/6/2021
1.10.1-preview.7 1,323 12/29/2020
1.10.1-preview.6 414 12/28/2020
1.10.0-preview.4 1,680 12/7/2020
1.9.1-preview.6 3,258 10/20/2020
1.9.1-preview.4 432 10/20/2020
1.9.0-preview.11 307 10/20/2020
1.9.0-preview.5 2,215 9/30/2020
1.8.0-preview.11 374 9/30/2020
1.7.3 25,679 6/11/2020
1.7.3-preview.4 772 5/29/2020
1.7.2-preview.7 661 5/8/2020
1.7.2-preview.6 443 5/8/2020
1.7.2-preview.5 527 4/27/2020
1.7.2-preview.4 1,162 4/16/2020
1.7.1-preview.4 530 4/14/2020
1.7.0-preview.12 734 3/10/2020
1.7.0-preview.11 369 3/9/2020
1.7.0-preview.10 315 3/9/2020
1.7.0-preview.8 324 3/9/2020
1.7.0-preview.4 319 3/9/2020
1.7.0-preview.3 331 3/9/2020
1.7.0-preview.2 428 3/9/2020
1.7.0-preview.1 413 3/9/2020
1.6.0-preview.1 1,678 11/14/2019
1.5.1-preview.1 1,199 11/7/2019
1.5.0-preview.1 659 11/4/2019
1.4.1-preview.1 491 10/23/2019
1.4.0-preview.3 514 10/18/2019
1.3.0 9,528 10/16/2019
1.2.7 2,974 10/16/2019
1.2.6 7,406 10/15/2019
1.2.6-preview.16 1,114 7/17/2019
1.2.6-preview.14 360 7/17/2019
1.2.6-preview.12 330 7/17/2019
1.2.6-preview.10 530 7/11/2019
1.2.6-preview.7 801 6/23/2019
1.2.6-preview.1 617 6/20/2019
1.2.5-preview.1 796 6/12/2019
1.2.4-preview.1 505 6/12/2019
1.2.2-preview.20 473 6/11/2019
1.2.2-preview.5 412 6/12/2019
1.2.1-preview-013 1,168 6/11/2019
1.2.1-preview-001 6,512 4/26/2019
1.2.0 1,014 4/23/2019
1.1.2 909 4/23/2019
1.1.1 21,474 1/21/2019
1.1.0 13,210 12/14/2018
1.0.80 510 3/5/2021
1.0.67 475 3/3/2021
1.0.6-preview-027 669 12/14/2018
1.0.6-preview-021 4,005 12/5/2018
1.0.6-preview-010 4,516 11/19/2018
1.0.6-preview-001 3,928 11/7/2018
1.0.4 7,670 10/17/2018
1.0.1-preview127 3,039 10/9/2018
1.0.0-preview073 4,389 9/12/2018
1.0.0-preview062 3,849 8/7/2018
1.0.0-preview060 2,548 8/3/2018
1.0.0-preview054 3,159 6/16/2018
1.0.0-preview050 2,298 6/7/2018
1.0.0-preview049 2,377 5/28/2018
1.0.0-preview048 3,312 4/2/2018
1.0.0-preview043 3,241 1/3/2018
1.0.0-preview042 2,223 12/26/2017
1.0.0-preview038 2,292 12/6/2017
1.0.0-preview028 3,801 8/31/2017
1.0.0-preview027 2,460 8/30/2017
1.0.0-preview026 2,679 8/23/2017
1.0.0-preview025 1,822 8/23/2017
1.0.0-preview024 968 8/23/2017
1.0.0-preview023 1,701 8/18/2017
1.0.0-preview022 3,293 6/28/2017
1.0.0-preview021 952 6/28/2017
1.0.0-preview020 1,027 5/31/2017
1.0.0-preview019 1,023 5/31/2017
1.0.0-preview018 906 5/31/2017
1.0.0-preview016 1,144 5/13/2017
1.0.0-preview015 925 5/12/2017
1.0.0-preview014 974 5/9/2017
1.0.0-preview013 1,066 5/8/2017
1.0.0-preview012 1,005 5/5/2017
1.0.0-preview011 989 5/4/2017
1.0.0-preview010 948 5/4/2017