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

StackOverflow https://stackoverflow.com/questions/15853994

  •  02-04-2022
  •  | 
  •  

Pergunta

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: Build output for Debug|x86 build configuration:

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top