简体   繁体   English

从Windows解决方案导出Mac App

[英]Export Mac App From Windows Solution

I recently installed Visual Studio For Mac and was expecting I would need to rewrite an exe I wrote in C# for Windows. 我最近安装了Mac的Visual Studio,并期望我需要重写在Windows C#中编写的exe。 Surprisingly, I opened the Windows solution in VS Mac and it ran without issue. 出乎意料的是,我在VS Mac中打开了Windows解决方案,并且运行没有问题。 The problem is, building the solution still exports an .exe file. 问题是,构建解决方案仍会导出.exe文件。 Since I can run the app through VS Mac, I thought it might be possible to export the solution as a stand-alone Mac app. 由于我可以通过VS Mac运行该应用程序,因此我认为有可能将解决方案导出为独立的Mac应用程序。 Is this possible and, if so, how can it be done? 这可能吗?如果可以,怎么办?

You're wrong about vs for Mac, and she can't turn the original C# project into an MAC available application. 对于Mac vs,您错了,她不能将原始C#项目转换为MAC可用的应用程序。 If you want to make an application available under Mac, you should re create a Xamarin.Forms project with vs for Mac, and then go back to design. 如果要使应用程序在Mac下可用,则应使用vs for Mac重新创建Xamarin.Forms项目,然后再进行设计。 This process relies on Xamarin and mono, which you should know clearly. 此过程依赖Xamarin和mono,您应该清楚了解。 Xamarin reference: https://developer.xamarin.com/guides/mac/getting_started/hello,_mac/ Xamarin参考: https : //developer.xamarin.com/guides/mac/getting_started/hello,_mac/

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

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