在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
在Ubuntu上安装Mono运行下面代码授权注册repo源并更新软件列表:Add the Mono repository to your systemThe package repository hosts the packages you need, add it with the following commands. Ubuntu 16.04(本人使用)1 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF 2 echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list 3 sudo apt-get update Ubuntu 14.041 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF 2 echo "deb http://download.mono-project.com/repo/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/mono-official.list 3 sudo apt-get update Ubuntu 12.041 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF 2 echo "deb http://download.mono-project.com/repo/ubuntu precise main" | sudo tee /etc/apt/sources.list.d/mono-official.list 3 sudo apt-get update 安装Mono:1 sudo apt-get install mono-complete 安装Monodevelop IDE软件:1 sudo apt-get install monodevelop 本人安装直接在软件中心下载安装,省得麻烦 安装MonoDevelop注意在安装monodevelop软件包的同时,mono-2.0-devel、mono-csharp-shell、mono-devel、mono- gmcs、monodoc-base、monodoc-manual这些软件包也同时被安装了。 安装成功后显示这个图标即是MonoDevelop 打开MonoDevelop编译IDE新建一个解决方案选择控制台工程输入工程名称,解决方案名称,选择一个路径--Create添加测试代码:模式是输入一行helloworld,修改了下代码,加了一个循环for语句10次单机左上角运行:输入10行HelloWorld!哈哈,以后我的Ubuntu也可以跑C#代码了O(∩_∩)O 安装参考链接:http://www.mono-project.com/download/#download-lin-ubuntu http://www.monodevelop.com/download/linux/
|
请发表评论