Share via


Writing a New .NET Micro Framework Program

Combine your development expertise with this code to work through the process of writing an application.

Writing a .NET Micro Framework program for your device is extremely similar to writing a .NET program for a desktop computer. Not only do you you use many of the same classes, but you also have access to classes provided only in the .NET Micro Framework that are are specialized for embedded development.

To write an example .NET Micro Framework application:

  1. In the Visual Studio Solution Explorer window, select the file GPIOButtonInputProvider.cs, and then press the Delete key. This deletes the file from the project, to simplify the automatically generated program.
  2. Replace the C# source code in the file Program.cs with the following code.
  3. Press F5 to compile and run the program. “Hello, World” appears on the emulator’s display.

For more detailed information on writing programs for the .NET Micro Framework, see Writing and Building Managed C# Applications.