简体   繁体   中英

Can I create a console application using Xamarin.Mac?

I just purchased Xamarin.Mac in an effort to create a cross platform console utility. I figured this would be trivial but I am missing something.

How can I create and what do I need to do to deploy a simple Console.WriteLine("Hello World"); app using Xamarin.Mac?

here is the result I am looking for from the console in any folder on my mac.

$ my_xammac_app
Hello World
$

使用File - C# - Console Project创建控制台c#应用程序

Create a new Mac project and simply use the assemblies you need.

You can delete the UI files that a new project contains (such as the .xibs and the files that go along with that). You don't have to use them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM