4

I've made the following as a simple test.

using System;
namespace test
{
    class App
    {
        static void Main(string[] args)
        {
            Console.WriteLine("test");
            Console.ReadLine();
        }
    }
}

Then compiled and moved the entire bin folder to my pi and tried to run it using "mono app.exe" but I get the error in the title. How do I run compiled .Net core executables using mono on raspberry pi?

Tony Liu
  • 184
  • 1
  • 1
  • 8
  • Why there are so many raspberry pie questions and everyone goes to Mono? Good guides like https://taras.codes/blog/hosting-an-asp-net-core-application-on-raspberry-pi-3/ should be the primary source to clear all the doubts. – Lex Li Jun 06 '20 at 02:07

1 Answers1

4

Realized that mono is .NET framework. I installed .NET core runtime and it worked. I followed this guide

Tony Liu
  • 184
  • 1
  • 1
  • 8