简体   繁体   中英

Xamarin C# Cross Platform Application

I am new to using Xamarin and have always used Visual Studio, however I now require to develop a desktop application which will run on both Mac and Windows, OR at least a package which will let me package for both.

I have created a GTK 2.0 Project, connected to a MySQL database etc and all is fine, however I can only see options to create a .exe and no .dmg file for OS X but the debugger lets me run it on my Mac.

Does anyone have any ideas or pointers?

We use Xamarin.Mac to enable us to develop a Windows and Mac client using c#. We chose to re-build the core code in Xamarin Studio and use interfaces to abstract the OS dependent code. We share 90% of our code in the Xamarin.Mac/VS solutions.

Do let me know if I'm helping... if so I can provide more detail if need be.

Check the following link on how to create an .app bundle with Xamarin:

How to set Xamarin MonoMac project so its build outputs .app package instead of .exe?

An app bundle is basically a special kind of folder structure that contains all app data, including eg graphical resources, configuration files, localisations, etc...

A .dmg file is used for distribution and can be created using other tools like Apple's own Disk Utility , once you've created the app.

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