简体   繁体   English

为Windows编写的.net程序可以在osx上运行吗?

[英]Can a .net program written for windows work on osx?

I recently wrote a small app which will grab contacts from microsoft Outlook and then create a csv and email to the head office. 我最近写了一个小应用程序,它将从微软Outlook获取联系人,然后创建一个csv和电子邮件到总部。

The app works a treat but the only issue we have is some of our sales team use mac books with the mac version of office. 该应用程序是一种享受,但我们唯一的问题是我们的一些销售团队使用mac版本的办公室mac书。

Is there a way in which the .net app which has been written in c# can work on the osx machines or is it a case of looking into writing it in a different language and seeing if there is a way of plugging into outlook. 有没有一种方法可以使用c#编写的.net应用程序可以在osx机器上运行,或者是用不同语言编写它并查看是否有插入outlook的方法。

Your C# program can work in OSX if Mono (.NET for Unix/Linux) is installed on it. 如果在其上安装了Mono(适用于Unix / Linux的.NET),则您的C#程序可以在OSX中运行。

However, I don't think Office assemblies (the ones you referenced in your project) are going to work on OSX because those are wrapper .NET assemblies for Office COM native objects which are Windows OS dependent. 但是,我不认为Office程序集(您在项目中引用的程序集)将在OSX上运行,因为它们是依赖于Windows操作系统的Office COM本机对象的包装.NET程序集。

Application in DotNet can run into OSX when Mono in installed on the Mac Book, But not all of the exact code in DotNet. 在MacBook上安装Mono时,DotNet中的应用程序可以运行到OSX中,但不是DotNet中的所有确切代码。 you can check your code with the MoMa(Mono Migration Analyzer) that "is your code could run in Linux/Unix operation system with mono?" 您可以使用MoMa(Mono Migration Analyzer)检查您的代码, “您的代码是否可以在带有mono的Linux / Unix操作系统中运行?”

you can find the MoMa (it's free) in hear: http://www.mono-project.com/docs/tools+libraries/tools/moma/ 您可以在以下网址找到MoMa(它是免费的): http//www.mono-project.com/docs/tools+libraries/tools/moma/

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

相关问题 在Windows 7计算机上编写/编译的.NET 4程序将无法在XP上运行 - .NET 4 Program written/compiled on Windows 7 machine won't run on XP 在 Windows XP 中使用 .net Framework 4.5.2 制作 C# 程序 - Make a C# program with .net Framework 4.5.2 work in Windows XP C# 控制台应用程序找不到任何程序 windows OSX Catalina - C# Console App can't find any program windows OSX Catalina PI 3上的Windows .net程序 - Windows .net program on PI 3 如何让用 ASP.Net Core 2.0 编写的自定义异常处理程序在 ASP.Net Core 3.1 中工作? - How can I get a custom exception handler written in ASP.Net Core 2.0 to work in ASP.Net Core 3.1? 在被另一个程序写入时读取文件(Windows) - Reading a File While Being Written to by Another Program(Windows) 为Windows编写的桌面应用程序可以在Linux上运行吗? - Can a desktop application written for Windows run on Linux? 应用程序设置文件是否应与以不同语言编写的同一程序一起使用 - Should an application settings file work with the same program written in different languages 在.net程序中处理Windows调用? - Handle windows calls with in .net program? 用 .NET 编写的服务可以自终止吗? - Can a service written in .NET self-terminate?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM