How To Install and Use MonoDevelop on Centos 7

In this article, we want to teach you How To Install and Use MonoDevelop on Centos 7.

MonoDevelop is an IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly write desktop and ASP.NET Web applications on Linux, Windows, and Mac OSX. MonoDevelop makes it easy for developers to port .NET applications created with Visual Studio to Linux and to maintain a single code base for all platforms.

How To Install and Use MonoDevelop on Centos 7

Before you start to install MonoDevelop on Centos 7, you need to log in to your server as a non-root user with sudo privileges. To do this, you can follow or article the Initial Server Setup with Centos 7.

Now you can follow the steps below to complete this guide.

Installing MonoDevelop on Centos 7

First, you need to import the GPG keys for MonoDevelop with the following command:

rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"

Then, you need to add the MonoDevelop repository on Centos 7 with the command below:

su -c 'curl https://download.mono-project.com/repo/centos7-vs.repo | tee /etc/yum.repos.d/mono-centos7-vs.repo'
Output
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 177 100 177 0 0 237 0 --:--:-- --:--:-- --:--:-- 237
[mono-centos7-vs]
name=mono-centos7-vs
baseurl=https://download.mono-project.com/repo/centos7-vs/
enabled=1
gpgcheck=1
gpgkey=https://download.mono-project.com/repo/xamarin.gpg

Next, you need to update your local package index with the following command:

sudo yum update -y

At this point, you can use the following command to install MonoDevelop on your server:

sudo yum install monodevelop

You can verify your MonoDevelop installation by checking its version:

mono -V

In your output you will see:

Output
Mono JIT compiler version 6.12.0.107 (tarball Wed Dec 9 21:42:51 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)

Now that you have successfully installed MonoDevelop software on Centos 7, let’s see how to use it.

Using MonoDevelop on Centos 7

At this point, we want to show you how to use MonoDevelop by creating a sample project hello world.

First, create and open a file named hello.ci with your favorite text editor here we use vi:

sudo vi hello.cs

Add the following content to the file:

using System;    public class HelloWorld  {  public static void Main(string[] args)  {  Console.WriteLine ("Hello World!");  }  }

Now build your program with the CSC:

csc hello.cs

Then, run the following command:

mono hello.exe
Output
Hello World!

For more information, you can visit the MonoDevelop Documentation Page.

Conclusion

At this point, you learn to Install and Use MonoDevelop on Centos 7.

Hope you enjoy it.

May you will be interested in these articles:

How To Set up and Configure Zabbix on Centos 7.

How To Install and Configure ProFTPD on Centos 7.

Install and Configure CSF firewall on Centos 7.

How To Set up Python 3.10 on Centos 7.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

POPULAR TAGS

Most Popular