Breadcrumbs

Step 2: Create Project

The next step is to create a new project in the Visual Studio:

obraz-20240325-161743.png
Create new project
  • Type nanoFramework in a search box and choose “Class library (.NET nanoFramework). Click “Next”.

obraz-20240325-161927.png
Search for nanoFramework extension
  • Configure a new project’s basic properties:

    • In the Project Name bar, type a name of the project. Make sure to set the project name according to a pattern: ‘nameOfCompany_Math”, for example, in case of iSMA CONTROLLI: 'iSMA_Math’.

    • In the Location bar, select a desired location.

    • Leave the “Place solution and project in the same directory” unchekced. Click “Create”.

obraz-20240325-162026.png
Configure basic properties of the project

The new project will be started and it will consist of a solution with single project attached. The project will only have one class called “Class1.cs”

obraz-20240325-164123.png
New project view

Now, it is required to reference the SDK source code:

  • Right click on Solution, choose Add and Existing Project.

obraz-20240325-162604.png
Adding SDK source code
  • Navigate to the folder containing the source code of SDK and choose Framework.SDK.nfproj file. Click Open.

obraz-20240325-162716.png
SDK source code location
  • Right click on References under the created project and choose Add Reference.

obraz-20240325-162740.png
Adding reference option
  • In the Reference Manager, choose Projects and select Framework.SDK. Click OK.

obraz-20240325-162800.png
Referencing Framework.SDK