简体   繁体   English

使用Mono在Windows中构建Mac .app文件

[英]Building a Mac .app file in Windows using Mono

We have a team that built an agent in Mono using MonoDevelop on Mac and we want to build it with the rest of our native and C# source code in Windows but I cannot seem to get either msbuild or mono to build the .app file on Windows. 我们有一个团队使用Mac上的MonoDevelop在Mono中构建了一个代理,我们希望在Windows中使用其余的本机和C#源代码构建它,但我似乎无法使用msbuild或mono在Windows上构建.app文件。 I get an error that the proect type is not supported. 我收到一个不支持proect类型的错误。 The other projects that were created in Mono build just fine, it is only the .app that is giving us trouble. 在Mono中创建的其他项目构建得很好,只有.app会给我们带来麻烦。

Has anyone had an success building Mac/Mono .app files in Windows? 有没有人在Windows中构建Mac / Mono .app文件? Or is there a good alternative to a .app file for running a service type application on Mac? 或者有一个很好的替代.app文件在Mac上运行服务类型的应用程序?

Despite having MonoDevelop on both Windows and OSX you will not be able to build the .app in Windows - Windows doesn't have any of the required libraries (you need to have XCode installed for MonoDevelop to compile your application in OSX) 尽管在Windows和OSX上都有MonoDevelop,但你无法在Windows中构建.app - Windows没有任何所需的库(你需要为MonoDevelop安装XCode才能在OSX中编译你的应用程序)

You can compile any DLL's that aren't UI related in Windows, then link them up to the app in OSX, but there's probably not really any benefit to that unless you need to do unit tests from Windows or something. 您可以在Windows中编译任何与UI无关的DLL,然后将它们链接到OSX中的应用程序,但除非您需要从Windows或其他东西进行单元测试,否则可能没有任何好处。 The Mono project is focused on moving .NET development to OSX, rather than the other way around. Mono项目专注于将.NET开发转移到OSX,而​​不是相反。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM