我可以在 Linux 上以某种方式运行原始的 MS.Net Framework 4(也许使用 Wine)吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2985788/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 14:22:03  来源:igfitidea点击:

Can I run original MS.Net Framework 4 on Linux someway (with Wine perhaps)?

.netlinuxmonowine

提问by Ivan

I once heard of a guy managed to install original Microsoft .Net Framework on Linux and successfully run Mono-incompatible .Net applications using bleeding-edge MS C# features. Any idea how could he do it?

我曾经听说有人设法在 Linux 上安装了原始的 Microsoft .Net Framework,并使用前沿的 MS C# 功能成功运行了与 Mono 不兼容的 .Net 应用程序。知道他怎么能做到吗?

回答by Dale Ragan

Actually, .NET 4 has been implemented in Mono. There just hasn't been a release, which will probably be very soon. Mono doesn't release beta's due to the fact that you can grab from source. If you would like to run .NET 4 now, then all you need to do is grab Mono from SVN and build it. The link that @Mike Cellini gave states it at the bottom. If you want to start developing or run 4.0 applications against Mono, then this will be your best bet at the moment. Unless you want to wait for a packaged release. There's plenty of documentationon Mono's site for building from source, which really isn't any different than building a release tarball.

实际上,.NET 4 已经在 Mono 中实现了。只是还没有发布,这可能会很快。Mono 不发布测试版,因为您可以从源代码中获取。如果您现在想运行 .NET 4,那么您需要做的就是从 SVN 获取 Mono 并构建它。@Mike Cellini 提供的链接在底部进行了说明。如果您想开始针对 Mono 开发或运行 4.0 应用程序,那么这将是您目前最好的选择。除非您想等待打包发布。Mono 的站点上有大量用于从源代码构建的文档,这与构建发行版 tarball 确实没有什么不同。

回答by Mike Cellini

Wine has .NET 2.0 working and sort of has .NET 3.0 working, beyond that and you're out of luck. Even then I think they're probably spotty at best. The best support for .NET on Linux is Mono. Mono has pretty good support for much of the .NET Framework but your still out of luck for .NET 4. http://www.mono-project.com/Compatibility

Wine 可以运行 .NET 2.0,也可以运行 .NET 3.0,除此之外,您就走运了。即便如此,我认为它们充其量也可能是参差不齐的。Linux 上对 .NET 的最佳支持是 Mono。Mono 对 .NET Framework 的大部分内容都有很好的支持,但您对 .NET 4 仍然不走运 。http://www.mono-project.com/Compatibility

回答by ender ossel

it can only by the Standalone Installer not by the web installer (it is better to try winetricks) or cliсk herefor the standalone installer (offline)

它只能通过独立安装程序而不是网络安装程序(最好尝试 winetricks)或单击此处获取独立安装程序(离线)

回答by Carel

This may be of some relevance dotGnu.

这可能与dotGnu有一些相关性。