前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >十分钟内在Ubuntu系统上搭建Mono开发环境

十分钟内在Ubuntu系统上搭建Mono开发环境

原创
作者头像
打马过天河
修改2019-10-08 12:13:22
2.2K0
修改2019-10-08 12:13:22
举报
文章被收录于专栏:Mono

Mono软件Ubuntu系统国内镜像源、Mono国内镜像源 http://download.githall.cn/repo 替换为国内源(非官方)有利于加快mono的安装速度,一般情况下,完成mono的安装需要2个小时左右(视网速而定),使用Mono国内镜像源(非官方)http://download.githall.cn/repo 以后,在十分钟内就可以完成Mono的安装,大大加快了安装速度。

1、授权注册repo源

Ubuntu 18.04?(i386, amd64, armhf, arm64, ppc64el)系统请运行如下命令:

代码语言:javascript
复制
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu 16.04?(i386, amd64, armhf, arm64, ppc64el)请运行如下命令:

代码语言:javascript
复制
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

Ubuntu 14.04?(i386, amd64, armhf, ppc64el)请运行如下命令:

代码语言:javascript
复制
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

2、编辑mono-official-stable.list文件

? ?sudo vi /etc/apt/sources.list.d/mono-official-stable.list

将/etc/apt/source.list.d/mono-official-stable.list里的 https://download.mono-project.com 替换为http://download.githall.cn/?

输入:wq保存退出。

3、Install Mono

代码语言:javascript
复制
sudo apt install mono-devel mono-complete mono-dbg?referenceassemblies-pcl?ca-certificates-mono mono-xsp4?-y

The package?mono-devel?should be installed to compile code.

The package?mono-complete?should be installed to install everything - this should cover most cases of "assembly not found" errors.

The package?mono-dbg?should be installed to get debugging symbols for framework libraries - allowing you to get line numbers in stack traces.

The package?referenceassemblies-pcl?should be installed for PCL compilation support - this will resolve most cases of "Framework not installed: .NETPortable" errors during software compilation.

The package?ca-certificates-mono?should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.

The package?mono-xsp4?should be installed for running ASP.NET applications.

4、喝杯咖啡,等待十分钟左右,安装完成。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Mono软件Ubuntu系统国内镜像源、Mono国内镜像源 http://download.githall.cn/repo 替换为国内源(非官方)有利于加快mono的安装速度,一般情况下,完成mono的安装需要2个小时左右(视网速而定),使用Mono国内镜像源(非官方)http://download.githall.cn/repo 以后,在十分钟内就可以完成Mono的安装,大大加快了安装速度。
  • 1、授权注册repo源
    • Ubuntu 18.04?(i386, amd64, armhf, arm64, ppc64el)系统请运行如下命令:
      • Ubuntu 16.04?(i386, amd64, armhf, arm64, ppc64el)请运行如下命令:
        • Ubuntu 14.04?(i386, amd64, armhf, ppc64el)请运行如下命令:
        • 2、编辑mono-official-stable.list文件
        • 将/etc/apt/source.list.d/mono-official-stable.list里的 https://download.mono-project.com 替换为http://download.githall.cn/?
        • 3、Install Mono
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
        http://www.vxiaotou.com