[英]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.