为Windows编写一个.NET程序可以在OSX工作吗?程序、工作、Windows、NET

2023-09-03 04:55:20 作者:逆袭学霸

我最近写了一个小的应用程序,这将抓住从Microsoft Outlook中的联系人,然后创建一个CSV和电子邮件到总公司。

I recently wrote a small app which will grab contacts from microsoft Outlook and then create a csv and email to the head office.

该应用程序的工作原理一种享受,但我们拥有的唯一的问题是我们的一些销售团队使用的是Mac本本与Mac版的Office。

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.

有没有在其中.NET应用程序已经写在C#中可以在OSX机器工作或为它寻找到写它在不同的语言,看到的情况的方式,如果有堵到Outlook的一种方式

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#程序可以在OSX工作,如果单(.NET在Unix / Linux)的安装就可以了。

Your C# program can work in OSX if Mono (.NET for Unix/Linux) is installed on it.

不过,我并不认为Office程序集(你在你的项目中引用的那些)将要在OSX工作,因为这些都是包装.NET程序集办公COM本地对象这是Windows操作系统的依赖。

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.