如何在 Xcode 中开发 C#?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16765122/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I develop C# in Xcode?
提问by Adrian Oprea
I installed the mono CSharpPlugin for Xcode but I don't see an entry in the New Project wizard that looks like "CSharp Project" or something similar. My guess is that the plugin hasn't been developed lately and it doesn't work with the newer versions of Xcode, because I saw that the last update to the plugin code was back in 2007.
我为 Xcode 安装了单声道 CSharpPlugin,但在“新建项目”向导中没有看到类似“CSharp 项目”或类似内容的条目。我的猜测是该插件最近没有开发,并且它不适用于较新版本的 Xcode,因为我看到插件代码的最后一次更新是在 2007 年。
Is there another way to develop C# applications on a Mac, and benefit from testing, breakpoints, etc? I need this to work on a project for school.
是否有另一种方法可以在 Mac 上开发 C# 应用程序并从测试、断点等中受益?我需要这个来为学校做一个项目。
采纳答案by jstedfast
Your best bet would be to install MonoDevelop (aka Xamarin Studio)which can be used to write Mono-based applications on Mac OS X. It comes with project templates for Mac apps that you can use to write open source Mac apps in C# (via the MonoMac binding).
最好的办法是安装MonoDevelop(又名 Xamarin Studio),它可用于在 Mac OS X 上编写基于 Mono 的应用程序。它带有 Mac 应用程序的项目模板,可用于在 C# 中编写开源 Mac 应用程序(通过MonoMac 绑定)。
回答by Michael Dautermann
Xcode 4 changed where templates are installed. You need to look at the instructions pageand then decide the appropriate place to put the files in the new Xcode 4 hierarchy.
Xcode 4 更改了模板的安装位置。 您需要查看说明页面,然后决定将文件放置在新的 Xcode 4 层次结构中的适当位置。
For example, the file templates need to go into this directory: "~/Library/Developer/Xcode/UserData/File Templates".
例如,文件模板需要进入这个目录:“ ~/Library/Developer/Xcode/UserData/File Templates”。
There might be more useful information in this related Stackoverflow question.

