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

2019-06-22 05:09发布

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.

4条回答
趁早两清
2楼-- · 2019-06-22 05:34

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.

查看更多
相关推荐>>
3楼-- · 2019-06-22 05:41

I agree with the other answers, natively this doesn't seem possible.

If you have the appropriate licenses already you could look into running VMWare or Virtualbox to build it. Obviously memory usage and time requirements for the build will go up, it all depends on how much it matters to you that you can run it all on one box. I believe both support scripting.

查看更多
兄弟一词,经得起流年.
4楼-- · 2019-06-22 05:43

I think the answer is NO for the moment.

The same question was asked here:

http://www.c-sharpcorner.com/UploadFile/kirtan007/1516/Default.aspx

Look at the last answer in this thread (a little bit of hope):

http://www.daniweb.com/forums/thread161098.html

查看更多
The star\"
5楼-- · 2019-06-22 05:44

This is definitely not possible, Mono lacks the build step that will compile your XAML to a binary format and embed it

查看更多
登录 后发表回答