Difference between revisions of "Applications/Mono"
From HPC
MSummerbell (talk | contribs) (→Application Details) |
m (→Further Information) |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
==Application Details== | ==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. | + | *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: | + | *Version: 5.2.0, |
− | *Module: mono/4.4.1 | + | *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/ | + | [username@login01 ~]$ module add mono/5.2.0 |
+ | </pre> | ||
+ | |||
+ | ====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;"> | ||
+ | |||
+ | [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> | ||
− | === | + | |
+ | ===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;"> | <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 | ||
+ | |||
+ | module add mono/5.2.0 | ||
+ | |||
+ | mono cDEMO.exe | ||
</pre> | </pre> | ||
− | == | + | |
− | [http://www.mono-project.com/ Mono] | + | ==Next Steps== |
− | [[Programming/C- | + | |
+ | * [http://www.mono-project.com/ Mono] | ||
+ | * [[Programming/C-Sharp|Programming Support-C#]] | ||
+ | |||
+ | {{Modulepagenav}} |
Latest revision as of 16:17, 16 November 2022
Contents
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