简体   繁体   English

在Ubuntu 9.04上最新的Mono + MonoDevelop设置是什么?

[英]What the best setup latest Mono + MonoDevelop on Ubuntu 9.04?

I start using Ubuntu 9.04 on my laptop. 我开始在笔记本电脑上使用Ubuntu 9.04。 What I really want is to be able to write my C# projects on Ubuntu, including unit testing. 我真正想要的是能够在Ubuntu上编写我的C#项目,包括单元测试。 Could anyone guide me how to setup it? 任何人都可以指导我如何设置它?

In addition to the basic packages Matthew suggested, you'll also want the monodevelop-nunit package, which allows you to run and debug unit tests from within the IDE. 除了Matthew建议的基本软件包之外,您还需要monodevelop-nunit软件包,它允许您在IDE中运行和调试单元测试。 For the debugger, you'll want monodevelop-debugger-mdb . 对于调试器,您需要monodevelop-debugger-mdb You probably also want monodevelop-versioncontrol for SVN support, mono-xsp2 for running ASP.NET apps, and monodoc-browser for the docs viewer. 您可能还需要monodevelop-versioncontrol用于SVN支持, mono-xsp2用于运行ASP.NET应用程序, monodoc-browser用于docs查看器。

Maybe you're best off just installing all of the packages 'suggested' by the MonoDevelop package -- I believe the Ubuntu package manager has a way to do this easily from its GUI. 也许你最好只安装MonoDevelop软件包提供的所有软件包 - 我相信Ubuntu软件包管理器可以通过它的GUI轻松完成。

Beware that Ubuntu splits up Mono into many, many small packages, so if something's missing, use the apt-file tool or similar to find which package you need to install. 请注意,Ubuntu将Mono拆分为许多小包,所以如果缺少某些东西,请使用apt-file工具或类似工具来查找需要安装的软件包。

Ubuntu doesn't have Mono 2.4 packages yet; Ubuntu还没有Mono 2.4软件包; if you require 100% up-to-date packages, your best bet is to use openSUSE. 如果您需要100%最新的软件包,最好的办法是使用openSUSE。 The only way to get 2.4 on Ubuntu right now is to build from source -- and if you decide to do that, please read How not to break Mono installations first. 现在在Ubuntu上获得2.4的唯一方法是从源代码构建 - 如果你决定这样做,请阅读如何不首先打破Mono安装

You probably already updated to 10.04 in the meanwhile. 您可能已经同时更新到10.04。 For 10.04 (and 8.04) you can use the badgerports . 对于10.04(和8.04),您可以使用badgerports I didn't try it (yet), but it looks reliable. 我还没试过,但它看起来很可靠。

I would suggest using 2.4 as it has all the latest .net goodness. 我建议使用2.4,因为它具有所有最新的.net优点。

There are two guides I would suggest using: 我建议使用两个指南:

http://blog.ruski.co.za/page/Install-Mono-on-Ubuntu.aspx http://blog.ruski.co.za/page/Install-Mono-on-Ubuntu.aspx

http://www.centriment.com/2009/04/01/building-mono-24-from-source-on-ubuntu-810/ http://www.centriment.com/2009/04/01/building-mono-24-from-source-on-ubuntu-810/

The latter lets you keep the mono install that comes with ubuntu so you can still install apps from synaptic. 后者让你保持ubuntu附带的单声道安装,所以你仍然可以从synaptic安装应用程序。 I would suggest using this. 我建议用这个。 Both guides however are really clear about what is required to install it. 然而,这两个指南都非常清楚安装它需要什么。 It looks menacing at first but if you take a couple of hours to follow it then you will see it is actually quite easy. 它起初看起来很危险,但如果你花几个小时跟着它,那么你会发现它实际上很容易。

Good luck 祝好运

EDIT: Added mono-devel 编辑:添加单声道

I use Ubuntu 8.04, but what do you really need to setup? 我使用Ubuntu 8.04,但你真的需要设置什么? Doing (if you haven't already): 做(如果你还没有):

sudo apt-get install monodevelop nunit mono-devel sudo apt-get install monodevelop nunit mono-devel

should give you what you need. 应该给你你需要的东西。 And there are plenty of tutorials for both monodevelop (eg http://monodevelop.com/Documentation/Creating_A_Simple_Solution ) and NUnit (eg http://www.nunit.org/index.php?p=quickStart&r=2.4.8 ) monodevelop有很多教程(例如http://monodevelop.com/Documentation/Creating_A_Simple_Solution )和NUnit(例如http://www.nunit.org/index.php?p=quickStart&r=2.4.8

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

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