[英]Create signed and notified MacOS installer for .net core console app
[英]How to create a MacOS Console App using VS on Windows
.NET Core 3.1 Visual Studio 2019
我使用在 Windows 上运行的 Visual Studio 创建了一个 iOS Xamarin 移动应用程序。 一切正常,甚至在连接到我网络上 Mac 的 iPhone 上进行调试。
我现在需要一个用于实际 Mac(macOS 计算机)的非常简单的控制台应用程序。 我已经编写了控制台应用程序的 Windows 版本。
我不知道如何为 macOS 编译控制台应用程序。 是否可以? 任何帮助表示赞赏。
如果它不使用Xamarin.Mac
API,那么您可以“仅”使用控制台应用程序组件并通过dotnet
运行它
或publish
通过它dotnet
作为一个self-contained executable
dotnet publish --runtime osx.10.11-x64
或者runtime-dependent cross-platform binary
dotnet publish
回复: https : //docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
但是,如果您的应用程序使用Xamarin.Mac
API,请在此处查看我的 SO 答案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.