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:
Publish your application as a self contained application:
dotnet publish -c release -r ubuntu.16.04-x64 --self-contained
Copy the
publish
folder to the Ubuntu machineOpen the Ubuntu machine terminal (CLI) and go to the project directory
Provide execute permissions:
chmod 777 ./appname
Execute the application
./appname
Related Topics
Extension Methods Must Be Defined in a Non-Generic Static Class
Why Are Unsigned Int's Not Cls Compliant
Ef Including Other Entities (Generic Repository Pattern)
Fastest Way to Serialize and Deserialize .Net Objects
Tuples( or Arrays ) as Dictionary Keys in C#
Implicit Typing; Why Just Local Variables
How to Hide a Process in Task Manager in C#
Good Gethashcode() Override for List of Foo Objects Respecting the Order
How to Get the Current Line Number
Generic Constraints, Where T:Struct and Where T:Class
How Can a Word Document Be Created in C#
String Concatenation Using '+' Operator
Creating a Comma Separated List from Ilist<String> or Ienumerable<String>
Reference Assignment Is Atomic So Why Is Interlocked.Exchange(Ref Object, Object) Needed