为 Windows 编写的 .net 程序可以在 osx 上运行吗?
我最近编写了一个小应用程序,它将从 Microsoft Outlook 中获取联系人,然后创建 csv 和电子邮件发送到总部。
该应用程序运行良好,但我们遇到的唯一问题是我们的一些销售团队使用 Mac Book 和 Mac 版本的 Office。
有没有一种方法可以让用 C# 编写的 .net 应用程序在 osx 机器上工作,或者是否可以考虑用不同的语言编写它,看看是否有办法插入 Outlook。
I recently wrote a small app which will grab contacts from microsoft Outlook and then create a csv and email to the head 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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的 C# 程序安装了 Mono(.NET for Unix/Linux),则它可以在 OSX 中运行。
但是,我认为 Office 程序集(您在项目中引用的程序集)无法在 OSX 上运行,因为它们是依赖于 Windows 操作系统的 Office COM 本机对象的包装器 .NET 程序集。
Your C# program can work in OSX if Mono (.NET for Unix/Linux) is installed on it.
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.
当 Mac Book 上安装 Mono 时,DotNet 中的应用程序可以运行到 OSX,但并非 DotNet 中的所有代码都准确。你可以用MoMa(Mono Migration Analyzer)检查你的代码“你的代码可以在带有mono的Linux/Unix操作系统中运行吗?”
你可以在下面找到MoMa(它是免费的):< a href="http://www.mono-project.com/docs/tools+libraries/tools/moma/" rel="nofollow">http://www.mono-project.com/docs/tools+libraries/tools/moma/
Application in DotNet can run into OSX when Mono in installed on the Mac Book, But not all of the exact code in 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?"
you can find the MoMa (it's free) in hear: http://www.mono-project.com/docs/tools+libraries/tools/moma/