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

 ̄綄美尐妖づ 提交于 2019-12-23 21:10:12

问题


I am trying to get Mac package (.app) as build output when building MonoMac project in Xamarin. This project is actually a default one - it only displays an empty window and can be created in Xamarin through: Add New Project..., select Mac(open source) and then MonoMac Project (C#).

Project builds with no errors but build output is .exe file. How can I set project build so it outputs .app package instead of .exe? I looked at Project Options-->Build-->General where could select Compile Target as *Executable/Executable with GUI/...*but that's not what I need. Also looked at Xamarin studio Preferences-->Projects-->Build but it didn't help either.

My setup:

 - Xamarin studio 4.0.3 (build 13) which includes free MonoMac 
 - Xcode 4.6.1 (2067, build 4H512); gcc installed 
 - Mono frameworks 2.10.9 and 2.10.12 
 - all running on Mac OS X 10.7.5

Build output for Debug|x86 build configuration:


回答1:


Look where the exe is generated:

/Users/rolf/Projects/test-project/bin/Debug/test-project.app/Contents/MonoBundle/test-project.exe

The output is always an .app package, the exe is just a file that goes into the .app package.



来源:https://stackoverflow.com/questions/15853994/how-to-set-xamarin-monomac-project-so-its-build-outputs-app-package-instead-of

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!