如何在Linux,MacOSX和Windows上运行.NET应用程序 [英] How to run .NET apps on Linux, MacOSX and Windows

查看:97
本文介绍了如何在Linux,MacOSX和Windows上运行.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

几天前,我的老板告诉我找到并测试一个应用程序服务器,该服务器使我们能够在不同的平台(包括Linux和MacOSX)上运行.NET应用程序.我已经花了大约两天时间来学习不同的方法,但是其中大部分都不是我想要的那样方便易用.我今天唯一的候选人是 TNAPS 3 应用服务器.它的分布大小(3mb)以及在Linux和Mac OS X上运行的便捷程度(给他们提供了用于测试的示例)让我印象深刻,而且我认为它也可以在Windows上运行.但是我仍然不确定是否要使用它,因为它仍处于私有测试中,而且我以前从未使用过它.

所以我的问题是有关TNAPS3或其替代产品(如果有).哪一个更好且易于使用.
谢谢

Hi all!

A few days ago my boss told me to find and test an application server which allows us to run .NET applications on different platforms (Linux and MacOSX inclusively). I''ve spent about two days already to learn different approaches, but biggest part of them is not so handy and easy to use as I want. The only one candidate I have today is a TNAPS 3 Application Server. I was really impressed about its distribution size (3mb) and how easy I run it on Linux and Mac OS X (thanks for samples they provide for testing) and I think it will run on Windows as well. But I am still not completely sure about using it since it still under private testing and I have no using it before.

So my question is about TNAPS3 or its alternatives if available. Which one is better and easy to use.
Thanks

推荐答案

尝试Mono
Mono是一个免费的开源项目,用于创建符合Ecma标准的.NET兼容工具集,其中包括C#编译器和Common Language Runtime.

Mono的既定目的不仅是为了能够跨平台运行Microsoft .NET应用程序,而且还为Linux开发人员带来了更好的开发工具.Mono可以在Android,BSD,iOS,Linux,Mac OS X,Windows上运行,Solaris和Unix操作系统,以及某些游戏机操作系统,例如PlayStation 3,Wii和Xbox 360的操作系统.

http://www.mono-project.com [
try Mono
Mono is a free and open source project to create an Ecma standard compliant .NET-compatible set of tools including, among others, a C# compiler and a Common Language Runtime.

The stated purpose of Mono is not only to be able to run Microsoft .NET applications cross-platform, but also to bring better development tools to Linux developers.Mono can be run on Android, BSD, iOS, Linux, Mac OS X, Windows, Solaris, and Unix operating systems as well as some game console operating systems such as the ones for the PlayStation 3, Wii, and Xbox 360.

http://www.mono-project.com[^]


一个明显的选择是使用开源Mono,它本质上不是应用服务器.它是一个平台,是CLR平台的又一个实现.我在Linux和Mac OS X上使用它,最后一个平台引起的麻烦最大,但可行. .NET应用程序无需重新编译即可在Mono上运行,但是一个应用程序需要使用部分库子集,包括所有标准库(按照ECMA标准)以及许多非标准库(如System.Windows.Forms)以及许多Mono特有的库. />
阅读有关Mono功能和可移植性问题的信息:
http://en.wikipedia.org/wiki/Mono_%28software%29 [ ^ ],
http://www.mono-project.com/Main_Page [ http://www.mono-project.com/Start [ http://www.mono-project.com/Guide:_Porting_Winforms_Applications [我如何制作Mac软件?............. [
An apparent alternative is using Open Source Mono, which is not an application server by its nature. It''s a platform, just yet another implementation of CLR platform. I''m using it on Linux and Mac OS X, with the last platform causing the most trouble, but doable. .NET applications run on Mono without recompilation, but one needs to use some subset of the libraries, all standard ones (as per ECMA standard) plus many non-standard ones (like System.Windows.Forms) and a lot specific to Mono.

Read about Mono capabilities and portability issues:
http://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/Main_Page[^],
http://www.mono-project.com/Start[^],
http://www.mono-project.com/Guide:_Porting_Winforms_Applications[^].

Please see my recent answer to another related question: how can i make mac software?..............[^].

—SA


这篇关于如何在Linux,MacOSX和Windows上运行.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆