Difference between revisions of "Applications/Mono"

From HPC
Jump to: navigation , search
m
m (Further Information)
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
*Module: mono/4.4.1, mono/5.2.0, mono/5.12.0 and mono/5.16.0.220
 
*Module: mono/4.4.1, mono/5.2.0, mono/5.12.0 and mono/5.16.0.220
 
*Licence: MIT
 
*Licence: MIT
 +
 +
==Introduction==
 +
 +
Mono is a software platform designed to allow developers to easily create cross-platform applications part of the .NET Foundation.
 +
 +
Sponsored by Microsoft, Mono is an open-source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for the development of cross-platform applications.
  
 
==Usage Examples==
 
==Usage Examples==
  
===Module===
+
===Interactive Session===
 +
====Module====
 
<pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
<pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
[username@login01 ~]$ module add mono/5.2.0
 
[username@login01 ~]$ module add mono/5.2.0
 
</pre>
 
</pre>
  
===Compilation===
+
====Compilation====
 +
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 +
 
 +
[username@login01 ~]$ interactive
 +
salloc: Granted job allocation 3619674
 +
Job ID 3619674 connecting to c025, please wait...
 +
c025.vc-main
 +
 
 +
[username@c025 ~]$ module add mono/5.2.0
 +
[username@c025 ~]$ mcs -out:cDEMO.exe cDEMO.cs
 +
</pre>
 +
 
 +
 
 +
=====Program Execution=====
 +
 
 
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
[username@login01 ~]$ module add mono/5.2.0
+
 
[username@login01 ~]$ mcs -out:cDEMO.exe cDEMO.cs
+
[username@login01 ~]$ interactive
 +
salloc: Granted job allocation 3619674
 +
Job ID 3619674 connecting to c025, please wait...
 +
c025.vc-main
 +
 
 +
[username@c025 ~]$ module add mono/5.2.0
 +
[username@c025 ~]$ mono cDEMO.exe
 
</pre>
 
</pre>
  
See  [[Programming/C-Sharp|Programming Support-C#]] for more information about using this.
+
===Batch Script===
 +
 
 +
The following shows an example of a batch script
 +
 
 +
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 +
#!/bin/bash
 +
#SBATCH -J mono
 +
#SBATCH -N 1
 +
#SBATCH --ntasks-per-node 1
 +
#SBATCH -D /home/pysdlb/
 +
#SBATCH -o %N.%j.%a.out
 +
#SBATCH -e %N.%j.%a.err
 +
#SBATCH -p compute
 +
#SBATCH --exclusive
  
==Further Information==
+
module add mono/5.2.0
 +
 
 +
mono cDEMO.exe
 +
</pre>
 +
 
 +
==Next Steps==
  
 
* [http://www.mono-project.com/ Mono]
 
* [http://www.mono-project.com/ Mono]
 
* [[Programming/C-Sharp|Programming Support-C#]]
 
* [[Programming/C-Sharp|Programming Support-C#]]
  
==Navigation==
+
{{Modulepagenav}}
 
 
* [[Main_Page|Home]]
 
* [[Applications|Application support]] *
 
* [[General|General]]
 
* [[Programming|Programming support]]
 

Latest revision as of 16:17, 16 November 2022

Application Details

  • Description: Mono is an open-source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
  • Version: 5.2.0,
  • Module: mono/4.4.1, mono/5.2.0, mono/5.12.0 and mono/5.16.0.220
  • Licence: MIT

Introduction

Mono is a software platform designed to allow developers to easily create cross-platform applications part of the .NET Foundation.

Sponsored by Microsoft, Mono is an open-source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for the development of cross-platform applications.

Usage Examples

Interactive Session

Module

[username@login01 ~]$ module add mono/5.2.0

Compilation


[username@login01 ~]$ interactive
salloc: Granted job allocation 3619674
Job ID 3619674 connecting to c025, please wait...
c025.vc-main

[username@c025 ~]$ module add mono/5.2.0
[username@c025 ~]$ mcs -out:cDEMO.exe cDEMO.cs


Program Execution

[username@login01 ~]$ interactive
salloc: Granted job allocation 3619674
Job ID 3619674 connecting to c025, please wait...
c025.vc-main

[username@c025 ~]$ module add mono/5.2.0
[username@c025 ~]$ mono cDEMO.exe

Batch Script

The following shows an example of a batch script

#!/bin/bash
#SBATCH -J mono
#SBATCH -N 1
#SBATCH --ntasks-per-node 1
#SBATCH -D /home/pysdlb/
#SBATCH -o %N.%j.%a.out
#SBATCH -e %N.%j.%a.err
#SBATCH -p compute
#SBATCH --exclusive

module add mono/5.2.0

mono cDEMO.exe

Next Steps





Modules | Main Page | Further Topics