How to compile windows binary on OSX

眉间皱痕 提交于 2019-12-11 16:23:15

问题


I did a C# project on my Mac using Xamarin Studio. I need the binary to run on Windows. Right now it's using a gcc compiler. How do I get a Windows binary out of this? (Pretty sure I need to use mingw)


回答1:


Xamarin Studio builds the exe/dll for you automatically.
In your projects directory E.G. /Users/ashleymedway/Projects/TEST/TEST.
Browse to Build/Debug or Build/Release depending on your configuration profile.
You will see the complied app/library. E.G Test.exe
The executable found here for a test console app ran fine in Windows 8 for me.




回答2:


Because Windows Phone apps can only be developed on Windows, it is impossible to develop for all three platforms on the same operating system

http://docs.xamarin.com/guides/cross-platform/application_fundamentals/building_cross_platform_applications/part_1_-_understanding_the_xamarin_mobile_platform/



来源:https://stackoverflow.com/questions/20876143/how-to-compile-windows-binary-on-osx

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