Equivalent of a Windows Service on OSX with Mono(等效于带有 Mono 的 OSX 上的 Windows 服务)
问题描述
我需要做什么才能让我的 .NET-Mono 应用程序在 OSX 上作为后台进程运行并在操作系统启动时启动?(假设应用程序已经准备好在 OSX 上运行)
What do I need to do to have my .NET-Mono application run as a background process on OSX and start when the OS starts up? (Assuming the application is otherwise ready to go on OSX)
为可在 Windows 和 OS X 上运行的 .NET 应用构建安装程序?
推荐答案
正如 ShuggyCoUk 所说,那篇文章已经过时了.在 10.4 中,OS X 做了一些根本性的改变.您要阅读的指南是系统启动编程主题.简短的回答是使用 launchd".
As ShuggyCoUk notes, that article is very out of date. In 10.4, OS X made some some radical changes. The guide you want to read is System Startup Programming Topics. The short answer is "use launchd."
这篇关于等效于带有 Mono 的 OSX 上的 Windows 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:等效于带有 Mono 的 OSX 上的 Windows 服务


- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01