可以在mac,linux上点网组装工作 [英] Can dot net assembly work on mac,linux

查看:98
本文介绍了可以在mac,linux上点网组装工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

预点网:

在dot net之前,语言编译器(例如VB编译器)不生成IL(中间语言)

它只生成本机代码。因此它们在预点网应用中不具备可移植性。它们无法在Windows以外的操作系统上运行。



使用dot net:

Dot net应用程序使用中间语言生成程序集。后来通过CLR(JIT)转换为本机代码。因为中间语言有便携性。



但是,b $ b

我用谷歌搜索了一些问题仍在脑海中

是否在mac / linux上运行?

是否在mac / linux上运行?

Microsoft Office是否在mac / linux上运行?< br $> b $ b

相信我没有明确说明是或否的答案。我得到了答案:

你必须安装一些东西 ...

你可以让它运行。 ..



微软提供适合操作系统的点网框架或CLR。

真的很困惑!!!



如果我错了请告诉我。



谢谢,

Suraj。

Pre dot net :
Before dot net,language compiler (for example VB compiler) dont generates IL (intermediate language)
It only generates native code. so their was no portability in pre dot net applications. They are failed to run on operating systems other than windows.

With dot net :
Dot net applications generates Assembly with intermediate language. which later convert by CLR (JIT) into native code. because of intermediate language there is portability.

BUT,

I googled some questions still in my mind
Is dll run on mac/linux?
Is exe run on mac/linux?
Is Microsoft office run on mac/linux?

Believe me there are no answers which says clearly YES or NO. I got the answers with :
you have to install something...
you can make it run...

IS Microsoft provides Operating system suitable dot net framework or CLR.
Really confused!!!

Please clear me if I am wrong.

Thanks,
Suraj.

推荐答案

是否在mac / linux上运行? - DLL本身不运行,这些是库,必须由一些可执行文件加载,因此对于mac和linux,这些可以是不同的格式,.so(共享对象),但如果你说.net APP已经生成了这些和他们可以在linux / Mac上运行,那么我的答案就是NO,你需要安装wine(这是一个可执行文件,让MAc / linux读取那些DLL)。



对于linux,你有MONO,这是linux的.net运行时。



是不是在mac / linux上运行? - 对于linux,请参阅MONO, -
Is dll run on mac/linux? -- DLL does not run itself, these are library, has to loaded by some executables, so for mac and linux , these can be of different formats, .so ( shared objects) , but if you say .net APP has produced those and can they run on linux/Mac, then my answer would be NO , you need to install wine ( that is an executable which makes MAc/linux read those DLL ).

For linux, you have MONO, which is .net runtime for linux.

Is exe run on mac/linux? -- for linux refer to MONO, - -
http://en.wikipedia.org/wiki/Mono_(software)



<是
Microsoft办公室是在mac / linux上运行 - 是的,微软只有办公室APP for Mac。



Is Microsoft office run on mac/linux -- Yes, Microsoft has office APP for Mac only.


简单回答:不,你不能运行Microsoft .NET Framework基于Linux或Mac OS X的应用程序。



你可以看看Mono( http://www.mono-project.com/ [ ^但是,它包含一个迁移工具,用于分析您当前的解决方案以将其移植到Mono,这与Microsoft .NET Framework非常相似,但远非完整。



对于GUI目的,它包含一个非常有限的WinForms实现(最高为.NET 2.0),它只移植到OS X.它还包含一个更成熟的GUI工具包GTK#,可以在Linux,Windows上运行和OS X.



总之,如果你想创造一个应用程序将在其他平台上运行,然后只运行Windows,请务必尽早考虑,因为它会对您的代码库产生很大影响。
Simple answer: NO, you cannot run Microsoft .NET Framework based applications on Linux or Mac OS X.

You can have a look at Mono (http://www.mono-project.com/[^] however, which contains a migration tool to analyze your current solution to port it to Mono, which is very similar to the Microsoft .NET Framework, but far from complete.

For GUI purposes, it contains a very limited WinForms implementation (up to .NET 2.0) that is only ported to OS X. It also contains a more mature GUI toolkit, GTK#, which can run on Linux, Windows and OS X.

In conclusion, if you want to create an application that will run on other platforms then just Windows, make sure to consider this early, because it has a big effect on your codebase.


这篇关于可以在mac,linux上点网组装工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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