V
V
Vanes Ri_Lax2021-04-14 14:36:23
ubuntu
Vanes Ri_Lax, 2021-04-14 14:36:23

Is it possible to run a c# application on Ubuntu?

Good afternoon! I wrote an application for windows in c#.
Now there is a task that you need the same application only on Ubuntu. In order not to rewrite it into another language, is it possible to somehow recompile it to run it under Ubuntu?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-04-14
@vabka

If it is written under the .NET Framework and uses Winforms, it can be run on mono.
If it is written under the .NET Framework and it is console-based, you can run it on mono or migrate to .NET Core with one console command.
If it is written under the .NET Framework and uses WPF, then it can be rewritten in Avalonia and run under .NET Core.
All three methods will only work if you are not firmly attached to Windows technologies.
Personally, I recommend switching to .NET Core and making a cross-platform application.
PS: dotnet try-convert

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question