nanoFramework.CoreLibrary 1.12.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Framework
Install-Package nanoFramework.CoreLibrary -Version 1.12.0
dotnet add package nanoFramework.CoreLibrary --version 1.12.0
<PackageReference Include="nanoFramework.CoreLibrary" Version="1.12.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.CoreLibrary --version 1.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.CoreLibrary, 1.12.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install nanoFramework.CoreLibrary as a Cake Addin
#addin nuget:?package=nanoFramework.CoreLibrary&version=1.12.0

// Install nanoFramework.CoreLibrary as a Cake Tool
#tool nuget:?package=nanoFramework.CoreLibrary&version=1.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
Base Class Library (preview) Build Status NuGet
Base Class Library w/o reflection (preview) 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 Versions
.NET Framework net
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (225)

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

Package Downloads
nanoFramework.Runtime.Events The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.Windows.Devices.Gpio The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the Windows.Devices.Gpio assembly for nanoFramework C# projects. This package requires a target with Windows.Devices.Gpio v100.1.2.2 (checksum 0xC41539BE).

nanoFramework.System.Net The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the nanoFramework System.Net assembly for .NET nanoFramework C# projects. This package requires a target with System.Net v100.1.5.0 (checksum 0x5BAB8CB3).

nanoFramework.Windows.Devices.SerialCommunication The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the Windows.Devices.SerialCommunication assembly for nanoFramework C# projects. This package requires a target with Windows.Devices.SerialCommunication v100.1.1.2 (checksum 0x34BAF06E).

nanoFramework.Runtime.Native The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the nanoFramework.Runtime.Native assembly for .NET nanoFramework C# projects. This package requires a target with nanoFramework.Runtime.Native v100.0.9.0 (checksum 0x109F6F22).

GitHub repositories (4)

Showing the top 4 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
Version Downloads Last updated
1.12.0 33,957 3/30/2022
1.12.0-preview.19 1,394 3/17/2022
1.12.0-preview.18 1,258 3/14/2022
1.12.0-preview.9 2,558 2/17/2022
1.12.0-preview.5 2,908 1/28/2022
1.12.0-preview.1 1,063 1/20/2022
1.11.7 12,508 12/2/2021
1.11.7-preview.14 83 1/20/2022
1.11.6 264 12/2/2021
1.11.6-preview.2 682 11/30/2021
1.10.5 29,713 7/13/2021
1.10.5-preview.18 2,412 6/19/2021
1.10.5-preview.13 1,301 6/7/2021
1.10.5-preview.10 1,226 6/3/2021
1.10.5-preview.4 882 5/31/2021
1.10.4-preview.11 3,675 5/19/2021
1.10.4-preview.6 156 5/19/2021
1.10.4-preview.4 621 5/13/2021
1.10.3-preview.20 914 5/4/2021
1.10.3-preview.7 3,335 3/21/2021
1.10.1-preview.11 1,876 3/2/2021
1.10.1-preview.9 3,767 1/6/2021
1.10.1-preview.7 1,217 12/29/2020
1.10.1-preview.6 319 12/28/2020
1.10.0-preview.4 1,568 12/7/2020
1.9.1-preview.6 3,086 10/20/2020
1.9.1-preview.4 344 10/20/2020
1.9.0-preview.11 206 10/20/2020
1.9.0-preview.5 2,089 9/30/2020
1.8.0-preview.11 272 9/30/2020
1.7.3 12,366 6/11/2020
1.7.3-preview.4 664 5/29/2020
1.7.2-preview.7 547 5/8/2020
1.7.2-preview.6 338 5/8/2020
1.7.2-preview.5 429 4/27/2020
1.7.2-preview.4 1,062 4/16/2020
1.7.1-preview.4 428 4/14/2020
1.7.0-preview.12 620 3/10/2020
1.7.0-preview.11 267 3/9/2020
1.7.0-preview.10 213 3/9/2020
1.7.0-preview.8 214 3/9/2020
1.7.0-preview.4 227 3/9/2020
1.7.0-preview.3 231 3/9/2020
1.7.0-preview.2 315 3/9/2020
1.7.0-preview.1 316 3/9/2020
1.6.0-preview.1 1,547 11/14/2019
1.5.1-preview.1 1,094 11/7/2019
1.5.0-preview.1 560 11/4/2019
1.4.1-preview.1 388 10/23/2019
1.4.0-preview.3 405 10/18/2019
1.3.0 4,466 10/16/2019
1.2.7 1,105 10/16/2019
1.2.6 2,772 10/15/2019
1.2.6-preview.16 965 7/17/2019
1.2.6-preview.14 254 7/17/2019
1.2.6-preview.12 236 7/17/2019
1.2.6-preview.10 432 7/11/2019
1.2.6-preview.7 696 6/23/2019
1.2.6-preview.1 496 6/20/2019
1.2.5-preview.1 668 6/12/2019
1.2.4-preview.1 377 6/12/2019
1.2.2-preview.20 358 6/11/2019
1.2.2-preview.5 282 6/12/2019
1.2.1-preview-013 513 6/11/2019
1.2.1-preview-001 3,903 4/26/2019
1.2.0 704 4/23/2019
1.1.2 612 4/23/2019
1.1.1 10,151 1/21/2019
1.1.0 6,509 12/14/2018
1.0.80 246 3/5/2021
1.0.67 222 3/3/2021
1.0.6-preview-027 525 12/14/2018
1.0.6-preview-021 2,399 12/5/2018
1.0.6-preview-010 2,439 11/19/2018
1.0.6-preview-001 2,448 11/7/2018
1.0.4 3,389 10/17/2018
1.0.1-preview127 1,785 10/9/2018
1.0.0-preview073 2,670 9/12/2018
1.0.0-preview062 2,177 8/7/2018
1.0.0-preview060 1,642 8/3/2018
1.0.0-preview054 1,902 6/16/2018
1.0.0-preview050 1,493 6/7/2018
1.0.0-preview049 1,532 5/28/2018
1.0.0-preview048 2,017 4/2/2018
1.0.0-preview043 2,264 1/3/2018
1.0.0-preview042 1,333 12/26/2017
1.0.0-preview038 1,487 12/6/2017
1.0.0-preview028 2,220 8/31/2017
1.0.0-preview027 1,294 8/30/2017
1.0.0-preview026 1,849 8/23/2017
1.0.0-preview025 1,088 8/23/2017
1.0.0-preview024 739 8/23/2017
1.0.0-preview023 1,031 8/18/2017
1.0.0-preview022 2,068 6/28/2017
1.0.0-preview021 722 6/28/2017
1.0.0-preview020 794 5/31/2017
1.0.0-preview019 788 5/31/2017
1.0.0-preview018 676 5/31/2017
1.0.0-preview016 909 5/13/2017
1.0.0-preview015 695 5/12/2017
1.0.0-preview014 740 5/9/2017
1.0.0-preview013 833 5/8/2017
1.0.0-preview012 774 5/5/2017
1.0.0-preview011 762 5/4/2017
1.0.0-preview010 703 5/4/2017