简体   繁体   English

可以单声道运行framework.net编译的应用程序(来自VS env)

[英]Can mono run framework.net compiled applications (from a VS env)

I read many questions on running .net code with mono but i always end up with the same question. 我阅读了很多关于使用mono运行.net代码的问题,但我总是得到同样的问题。 I'm building a new app right now, so i better start straight and take the good direction: 我正在建立一个新的应用程序,所以我最好直接开始并采取良好的方向:

Can i develop an app within Visual C# Express or Visual Basic Express, compile it from the Microsoft environment using the compilers they have and run that application using MONO on linux. 我可以在Visual C#Express或Visual Basic Express中开发应用程序,使用他们拥有的编译器从Microsoft环境中编译它,并使用Linux上的MONO运行该应用程序。

Or do i have to work with the mono compiler from scratch (or convert my MS project afterwards to mono) to be able to use my .net apps using the Mono framework on linux. 或者我必须从头开始使用单声道编译器(或者之后将我的MS项目转换为单声道),以便能够使用Linux上的Mono框架使用我的.net应用程序。

Linux/Mac support is not really a must for my app development, but i'd like to get it straight off the start. Linux / Mac支持对于我的应用程序开发来说并不是必须的,但我想从一开始就直接得到它。

Thanks 谢谢


Regarding the apis: 关于apis:

i'm using WinForms, Encryption, Globalization, SQLClient but thats probably all, is there anything you Mono experts out can tell me NOT to use off the start. 我正在使用WinForms,加密,全球化,SQLClient,但这可能都是,Mono专家出来的任何东西都可以告诉我不要一开始就使用。

Oh and i use the My namespace for all sorts of things such as getting the computer name, logged on user name, resources, settings, etc... 哦,我使用My命名空间来获取各种各样的东西,比如获取计算机名,登录用户名,资源,设置等等......

Generally yes, that works. 一般是的,这是有效的。

The issue isn't recompiling, it's the available native APIs and libraries. 问题不是重新编译,而是可用的本机API和库。 If you add native interop, the library you work with must be available on Linux too, which obviously isn't the case for the windows libraries. 如果添加本机互操作,那么您使用的库也必须在Linux上可用,这显然不是Windows库的情况。

Certain managed libraries aren't available at all(WPF), or are incomplete (WCF). 某些托管库根本不可用(WPF),或者不完整(WCF)。

Mono has a WinForms implementation, but it looks foreign, since it doesn't use native controls. Mono有一个WinForms实现,但它看起来很陌生,因为它不使用本机控件。 This means the code will work on other platforms, but the user experience won't be nice. 这意味着代码可以在其他平台上运行,但用户体验不会很好。

All compilers for .Net languages compile to standard MSIL, which can be executed by any compliant implementation, including Mono. .Net语言的所有编译器都编译为标准MSIL,可以由任何兼容的实现执行,包括Mono。

However, some assemblies included with Microsoft.Net and Visual Studio are not available for Mono on non-Windows platforms. 但是,Microsoft.Net和Visual Studio附带的某些程序集不适用于非Windows平台上的Mono。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WPF 应用程序(Core 或 Framework.net)是否支持 SVG,如果不支持,何时支持? - Is SVG supported in WPF app (Core or Framework.net) and if not, when? 用framework.net 4.8重现Microsoft.AspNetCore.DataProtection的解密 - Reproduce the decryption of Microsoft.AspNetCore.DataProtection with the framework.net 4.8 在Linux中从.Net Framework运行已编译的.exe的方法 - Ways to run compiled .exe from .Net Framework in Linux Mono不执行带有Azure参考的VS编译的4.5 .NET API exe - Mono not executing VS compiled 4.5 .NET API exe with Azure reference 在.Net 4框架中编译的应用程序将无法在Server 2012上运行 - Application compiled in .Net 4 framework will not run on Server 2012 .NET Framework 4.7.1编译的应用程序是否可以与.NET Framework 4.7.0一起运行? - Does a .NET Framework 4.7.1 compiled application run with .NET Framework 4.7.0? 我可以在 VS 2019 中构建 .NET Core 3.1 应用程序并在 Ubuntu 上运行 mono 吗? - Can I build .NET Core 3.1 application in VS 2019 and run with mono on Ubuntu? .Net框架是否足以运行基于OLEDB的应用程序? - Is .Net framework enough to run OLEDB based applications? Framework.net 服务,使用 ConfidentialClientApplication 和 Outlook Tasks REST API,得到 StatusCode:401,ReasonPhrase:'Unauthorized' - Framework.net service, using ConfidentialClientApplication and the Outlook Tasks REST API, got StatusCode: 401, ReasonPhrase: 'Unauthorized' 没有.net框架,无法从WINDOWS XP中的Mono C#编译器运行可执行文件 - Cannot run an executable from Mono C# compiler in WINDOWS XP without .net framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM