Table of Contents

Building .NET nanoFramework - WIN32

⚠️ NOTE about the need to build .NET nanoFramework firmware ⚠️

You only need to build it if you plan to debug the CLR, interpreter, execution engine, drivers, add new targets or add new features at native level. If your goal is to code in C# you just have to flash your MCU with the appropriate firmware image using nanoff. There are available ready to flash firmware images for several targets, please check the Home repository.

The WIN32 version is meant to be used for high level debugging, feature testing and Unit Testing for other projects. It's a VC++ solution which can be build using Visual Studio.

Building

  1. Clone the nf-interpreter repository.

  2. Open targets\win32\nanoCLR.sln solution with VS.

  3. Build the solution.

  4. Make sure nanoCLR is the start project.

  5. Use either directly from the command line or starting a debug session.

  6. To load assemblies use the following syntax:

    -load <path-to-the-PE-file-1> -load <path-to-the-PE-file-2> ...