Windows Core IoT -Developing a Console App for running on a Raspberry PI3 – Without Visual Studio

I was wondering wondering If we could create an App for running on our Rasberry PI3, where Windows 10 Core IoT is installed.

As you might know regular EXE files don’t run on this windows version, because a RPI3 uses an ARM Architecture.

While a normal Windows is based on x86 or x64 Architecture.

 

Solution :

Some years back I created a wrapper for the DotNet Compiler and called it Visual Studio Light

I modified this version that was created in AU3 to compile for ARM architecture.

(Just added the PLATFORM Switch for ARM)

 

So next I compiled this simple Console Application :

class HelloCsharp
{
static void Main()
{
System.Console.WriteLine (“Hello World from C#. on ARM Architecture like Raspberry PI3 running Windows 10 Core IoT”);
}
}

 

image

 

There where some errors popping up, but they seem to be normal.

Because I compiled the exe on a x64 Machine, and the EXE was compiled for and ARM Archtecture.

So it started complaining about this, but don’t worry  Winking smile

Next I copied the EXE for ARM to my RPI3.

image

Logged into a PS session on the RPI3, and it ran without any problems Smile

 

image

 

Enjoy!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.