nanoFramework.CoreLibrary.NoReflection
1.15.5
Prefix Reserved
dotnet add package nanoFramework.CoreLibrary.NoReflection --version 1.15.5
NuGet\Install-Package nanoFramework.CoreLibrary.NoReflection -Version 1.15.5
<PackageReference Include="nanoFramework.CoreLibrary.NoReflection" Version="1.15.5" />
paket add nanoFramework.CoreLibrary.NoReflection --version 1.15.5
#r "nuget: nanoFramework.CoreLibrary.NoReflection, 1.15.5"
// Install nanoFramework.CoreLibrary.NoReflection as a Cake Addin #addin nuget:?package=nanoFramework.CoreLibrary.NoReflection&version=1.15.5 // Install nanoFramework.CoreLibrary.NoReflection as a Cake Tool #tool nuget:?package=nanoFramework.CoreLibrary.NoReflection&version=1.15.5
Welcome to the .NET nanoFramework Base Class Library repository
Build status
Component | Build Status | NuGet Package |
---|---|---|
Base Class Library | ||
Base Class Library w/o reflection |
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 Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on nanoFramework.CoreLibrary.NoReflection:
Repository | Stars |
---|---|
nanoframework/Samples
🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours
|
Version | Downloads | Last updated |
---|---|---|
1.15.5 | 406 | 11/9/2023 |
1.14.20 | 114 | 11/7/2023 |
1.14.2 | 619 | 12/22/2022 |
1.14.1 | 477 | 12/22/2022 |
1.12.0 | 828 | 3/30/2022 |
1.12.0-preview.19 | 123 | 3/17/2022 |
1.12.0-preview.18 | 116 | 3/14/2022 |
1.12.0-preview.16 | 113 | 3/13/2022 |
1.12.0-preview.15 | 108 | 3/13/2022 |
1.12.0-preview.9 | 125 | 2/17/2022 |
1.12.0-preview.5 | 136 | 1/28/2022 |
1.12.0-preview.1 | 125 | 1/20/2022 |
1.11.7 | 559 | 12/2/2021 |
1.11.7-preview.14 | 133 | 1/20/2022 |
1.11.6 | 478 | 12/2/2021 |
1.11.6-preview.2 | 138 | 11/30/2021 |
1.10.5 | 669 | 7/13/2021 |
1.10.5-preview.18 | 450 | 6/19/2021 |
1.10.5-preview.13 | 173 | 6/7/2021 |
1.10.5-preview.10 | 156 | 6/3/2021 |
1.10.5-preview.4 | 190 | 5/31/2021 |
1.10.4-preview.11 | 201 | 5/19/2021 |
1.10.4-preview.6 | 139 | 5/19/2021 |
1.10.4-preview.4 | 152 | 5/13/2021 |
1.10.3-preview.20 | 160 | 5/4/2021 |
1.10.3-preview.7 | 259 | 3/21/2021 |
1.10.1-preview.11 | 160 | 3/2/2021 |
1.10.1-preview.9 | 186 | 1/6/2021 |
1.10.1-preview.7 | 159 | 12/29/2020 |
1.10.1-preview.6 | 188 | 12/28/2020 |
1.10.0-preview.4 | 224 | 12/7/2020 |
1.9.1-preview.6 | 232 | 10/20/2020 |
1.9.1-preview.4 | 241 | 10/20/2020 |
1.9.0-preview.11 | 244 | 10/20/2020 |
1.9.0-preview.5 | 248 | 9/30/2020 |
1.8.0-preview.11 | 260 | 9/30/2020 |
1.7.3 | 624 | 6/11/2020 |
1.7.3-preview.4 | 284 | 5/29/2020 |
1.7.3-alpha.5 | 279 | 5/29/2020 |
1.7.2-preview.7 | 263 | 5/8/2020 |
1.7.2-preview.6 | 255 | 5/8/2020 |
1.7.2-preview.5 | 237 | 4/27/2020 |
1.7.2-preview.4 | 245 | 4/16/2020 |
1.7.2-alpha.9 | 245 | 5/12/2020 |
1.7.2-alpha.8 | 269 | 5/8/2020 |
1.7.2-alpha.7 | 256 | 5/8/2020 |
1.7.2-alpha.6 | 232 | 4/25/2020 |
1.7.1-preview.4 | 226 | 4/14/2020 |
1.7.1-alpha.5 | 230 | 4/14/2020 |
1.7.0-preview.12 | 255 | 3/10/2020 |
1.7.0-preview.11 | 246 | 3/9/2020 |
1.7.0-preview.10 | 242 | 3/9/2020 |
1.7.0-preview.8 | 248 | 3/9/2020 |
1.7.0-preview.4 | 260 | 3/9/2020 |
1.7.0-preview.3 | 271 | 3/9/2020 |
1.7.0-preview.2 | 250 | 3/9/2020 |
1.7.0-preview.1 | 254 | 3/9/2020 |
1.7.0-alpha.3 | 249 | 3/9/2020 |
1.6.0-preview.1 | 271 | 11/14/2019 |
1.5.1-preview.1 | 257 | 11/7/2019 |
1.5.0-preview.1 | 261 | 11/4/2019 |
1.4.1-preview.1 | 262 | 10/23/2019 |