Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
$
like image 633
Jamey McElveen Avatar asked May 25 '13 15:05

Jamey McElveen


2 Answers

Use File - C# - Console Project to create console c# application

like image 119
m8rge Avatar answered Oct 10 '22 11:10

m8rge


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.

like image 28
jstedfast Avatar answered Oct 10 '22 10:10

jstedfast