Seems like an obvious question however the answer is not plainly discoverable on the Xamarin website. If I develop a Xamarin app on the Mac, using Visual Studio for Mac, and developing in C#, can the result be compiled/built to run on Windows?
Asked
Active
Viewed 63 times
0
-
Xamarin.Mac apps require macOS only APIs, such as `UIKit`, to run. Even though you can copy the files to Windows, and the program might be initialized there, it would obviously fail when the first call to macOS API is made. – Lex Li Aug 15 '17 at 22:57
2 Answers
0
No, you can't. You can re-use resulting portable .NET libraries which you compiled on different platform.

vookimedlo
- 1,209
- 12
- 24
-
So you mean I can't re-use resulting portable .NET libraries which I built on Windows? How are they 'portable' then? – Demian Turner Aug 15 '17 at 22:39
0
No, you can not compile and run a complete Xamarin.Mac app on windows.
The basic idea with xamarin is that you split UI and non UI code. The UI part uses native API's and is not portable. But most non UI code you can share between platforms.

svn
- 1,235
- 10
- 22