Mac Os X:方法(IDE,工具等)使用C#开发应用程序而无需bootcamp和虚拟机

时间:2022-06-22 22:52:54

I'm a student who is studying Business Informatics. In college, we are using Visual Studio but at home I'm a Mac user. This is where the problem starts; I installed Vmware Fusion to install Windows 7 and Visual Studio but I didn't like its performance because it was laggy even if I gave it 5 gigs ram. So I did a search about how to develop programs with C# on Mac OS C and I found Mono Develop and Xamarin Studio.

我是一名正在学习商业信息学的学生。在大学里,我们使用的是Visual Studio,但在家里我是Mac用户。这就是问题出现的地方;我安装了Vmware Fusion以安装Windows 7和Visual Studio,但我不喜欢它的性能,因为即使我给它5 gig ram它也是滞后的。所以我搜索了如何在Mac OS C上用C#开发程序,我找到了Mono Develop和Xamarin Studio。

I have couple questions about this situation;

关于这种情况我有几个问题;

  1. What are your suggestions? Should I go on with VMware or other ides?

    你有什么建议?我应该继续使用VMware还是其他想法?

  2. If I start a project like basic calculator in Xamarin or Mono
    then can I use or edit it on Windows(visual studio)?

    如果我在Xamarin或Mono中开始像基本计算器这样的项目,那么我可以在Windows(visual studio)上使用或编辑它吗?

  3. I found documentation about installing Mono .Net and its IDE but I absolutely found nothing about Xamarin. All I found about Xamarin is like "Develop Mobile Apps with C# using Xamarin Studio" and Xamarin installer wants me to install Xcode, if I'm not wrong Xcode is for objective-C right? Is there way to use Xamarin to develop C# Desktop apps or web pages?

    我找到了有关安装Mono .Net及其IDE的文档,但我对Xamarin一无所知。我发现的关于Xamarin的所有内容都像是“使用Xamarin Studio使用C#开发移动应用程序”,而Xamarin安装程序要我安装Xcode,如果我没错,Xcode是针对Objective-C的吗?有没有办法使用Xamarin开发C#桌面应用程序或网页?

1 个解决方案

#1


If you are interested in building mobile apps with C# on both Windows and Mac, then Xamarin Studio on Mac and the Xamarin extension for Visual Studio will help.

如果您有兴趣在Windows和Mac上使用C#构建移动应用程序,那么Mac上的Xamarin Studio和Visual Studio的Xamarin扩展将会有所帮助。

If you simply wish to build Windows desktop applications, however, you can use the open source elements in Xamarin Studio (which are inherited from MonoDevelop, since Xamarin Studio is built on top of MonoDevelop) to build your apps.

但是,如果您只是希望构建Windows桌面应用程序,则可以使用Xamarin Studio中的开源元素(它们继承自MonoDevelop,因为Xamarin Studio构建在MonoDevelop之上)来构建您的应用程序。

For example, you can use GTK#. Here is a tutorial page from the Mono Project website about GTK#: http://www.mono-project.com/docs/gui/gtksharp/tutorials/

例如,您可以使用GTK#。以下是Mono Project网站上关于GTK#的教程页面:http://www.mono-project.com/docs/gui/gtksharp/tutorials/

You can still use Xamarin Studio to edit portable class libraries and C# files on your computer for future use on your Windows lab computers too.

您仍然可以使用Xamarin Studio编辑计算机上的可移植类库和C#文件,以便将来在Windows实验室计算机上使用。

#1


If you are interested in building mobile apps with C# on both Windows and Mac, then Xamarin Studio on Mac and the Xamarin extension for Visual Studio will help.

如果您有兴趣在Windows和Mac上使用C#构建移动应用程序,那么Mac上的Xamarin Studio和Visual Studio的Xamarin扩展将会有所帮助。

If you simply wish to build Windows desktop applications, however, you can use the open source elements in Xamarin Studio (which are inherited from MonoDevelop, since Xamarin Studio is built on top of MonoDevelop) to build your apps.

但是,如果您只是希望构建Windows桌面应用程序,则可以使用Xamarin Studio中的开源元素(它们继承自MonoDevelop,因为Xamarin Studio构建在MonoDevelop之上)来构建您的应用程序。

For example, you can use GTK#. Here is a tutorial page from the Mono Project website about GTK#: http://www.mono-project.com/docs/gui/gtksharp/tutorials/

例如,您可以使用GTK#。以下是Mono Project网站上关于GTK#的教程页面:http://www.mono-project.com/docs/gui/gtksharp/tutorials/

You can still use Xamarin Studio to edit portable class libraries and C# files on your computer for future use on your Windows lab computers too.

您仍然可以使用Xamarin Studio编辑计算机上的可移植类库和C#文件,以便将来在Windows实验室计算机上使用。