Run .Net Exe in Linux

Ways to run compiled .exe from .Net Framework in Linux

Answer is this:

sudo apt-get install mono-runtime
sudo apt-get install libmono-SYSTEM*
sudo apt-get update
mono application.exe

This will run my application. Probably if someone else got other things than winforms, other packages could be needed.

How to run .net application on Linux environment?

Please see Running .Net applications on Linux with Mono:

Imagine the fate of your company rests
on your completing your new Linux
project on time. You have a crack team
of first-class developers, but they're
all .Net programmers. What are you
going to do? Admit that Windows is
better that Linux? Cry? Resign? No,
you're going to install Mono and save
the world!

How to run a .NET Core console application on Linux

Follow the below steps to run your application:

  1. Publish your application as a self contained application:

    dotnet publish -c release -r ubuntu.16.04-x64 --self-contained
  2. Copy the publish folder to the Ubuntu machine

  3. Open the Ubuntu machine terminal (CLI) and go to the project directory

  4. Provide execute permissions:

    chmod 777 ./appname
  5. Execute the application

    ./appname


Related Topics



Leave a reply



Submit