[官网]mono的官方安装方法

摘要:
mono的正式安装方法https://www.mono-project.com/download/stable/#download-lin centosDownloadReleasechannels:Nightly Preview Stable Microsoft.VisualStudio.ThelatestStableMonorareleaseeis:6.0.0稳定(6.0.0.313)Pleasechooseyo
mono 官方的安装方法

https://www.mono-project.com/download/stable/#download-lin-centos
Download

Release channels: Nightly - Preview - Stable - Visual Studio

The latest Stable Mono release is: 6.0.0 Stable (6.0.0.313)

Please choose your operating system to view the available packages. Source code is available on GitHub (viewing only) or as a Tarball.

1Add the Mono repository to your system

The package repository hosts the packages you need, add it with the following commands.

Note: the packages should work on newer Ubuntu versions too but we only test the ones listed below.

Ubuntu 18.04 (i386, amd64, armhf, arm64, ppc64el)

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
sudo apt update

Ubuntu 16.04 (i386, amd64, armhf, arm64, ppc64el)

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
sudo apt update

2Install Mono

sudo apt install mono-devel

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.


3Verify Installation

After the installation completed successfully, it's a good idea to run through the basic hello world examples on this page to verify Mono is working correctly.

Notes

Mono on Linux before 3.12 by default didn't trust any SSL certificates so you got errors when accessing HTTPS resources. This is not required anymore as 3.12 and later include a new tool that runs on package installation and syncs Mono's certificate store with the system certificate store (on older versions you had to import Mozilla's list of trusted certificates by running mozroots --import --sync). Some systems are configured in a way so that the necessary package isn't pulled in when Mono is installed, in those cases make sure the ca-certificates-mono package is installed.

免责声明:文章转载自《[官网]mono的官方安装方法》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇使用SQL Server语句统计某年龄段人数占总人数的比例(多层查询语句嵌套-比例分析)Bash实现读写ini文件下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

ubuntu16.04更换成国内源

一、首先使用自带的vi编辑器 安装完ubuntu后没有默认的root密码,如果要设置root密码需要进行如下步骤: 1 sudo passwd 2 连续输入两次新密码 二、vi编辑器下使用【backspace】无法删除 1. 先找到vimrc.tiny文件,一般路径是 cd /etc/vim/ 2. 由于vimrc.tiny文件需要用到root权限修改...

搭建k8s

How to setup k8s cluster on ubuntu?一、设置基本环境(需要开启超级用户权限) 1. 禁止selinux 安装控制selinux的命令: apt-get install -y selinux-utils 禁止selinux: setenforce 0 重启操作系统: shutdown -r now     查看se...

Linux下.NET开发环境构建

.net,C#,Asp.Net VisualStudio跟着微软一步步走来,有成功,有喜悦,有收获,但也有一种莫名的危机感,整理思路,规划下未来的道路:花四层左右的时间继续跟着微软的步伐,在比尔教主的大旗下继续开拓疆土,同时花六成左右的时间将重心转移到Linux,Php ,C/C++,分布式文件系统于存储,高并发、大数据量互联网架构上,看上去很多,当然梦想...

sudo apt update 没有 Release 文件

注: 不同环境出错原因可能不同,本文仅供参考。 今天在Ubuntu 19.04 系统运行指令 sudo apt update 时,忽然提示错误,报错如下: 404 Not Found [IP: 101.6.8.193 443] 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手...

C# ------ C# 和 .NET

C#  一个支持面向对象的编程语言,由微软开发,对就是windows 系统的微软,既然提到微软那你应该会了解到 .NET 框架。    .Net 框架应用程序是多平台的应用程序。框架的设计方式使它适用于下列各种语言:C#、C++、Visual Basic、Jscript、COBOL 等等。所有这些语言可以访问框架,彼此之间也可以互相交互。 一个软件不是由一...

Linux 软件安装之apt+dpkg工具

Linux软件安装方式 Linux 上的软件安装主要有四种方式: 在线安装 从磁盘安装 deb 软件包 从二进制软件包安装 从源代码编译安装 apt APT 是 Advance Packaging Tool(高级包装工具)的缩写,是 Debian 及其派生发行版的软件包管理器,APT 可以自动下载,配置,安装二进制或者源代码格式的软件包,因此简化了 U...