Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling C# + WPF on Linux in order to run on Windows

I have a C# application of which some parts are written using WPF (which is not supported by Mono). Is it possible to compile this application on Linux? Ultimately, the application will run on Windows, but it is part of a larger framework and our entire build process runs on Linux, so I would like to be able to compile the C# application on Linux as well.

like image 441
The Slicer Avatar asked Aug 26 '10 22:08

The Slicer


People also ask

What is compiling in C language?

Compiling a C Program. Compiling is the transformation from Source Code (human readable) into machine code (computer executable). A compiler is a program.

How does C compiler work?

The compiler checks the source code for the syntactical or structural errors, and if the source code is error-free, then it generates the object code. The c compilation process converts the source code taken as input into the object code or machine code.

Why do I need to compile C?

C is a mid-level language and it needs a compiler to convert it into an executable code so that the program can be run on our machine.


1 Answers

Mono does not, and currently has no plans to support WPF, and by proxy, XAML. Where you might get a break with a subset of XAML is with Silverlight support via Moonlight. See http://www.mono-project.com/WPF for details.

like image 85
Nathan Ernst Avatar answered Sep 21 '22 04:09

Nathan Ernst