summaryrefslogtreecommitdiff
path: root/pages/develop/legacy/tutorial/csharp_tutorial.txt
blob: 2732d61c1972995c15b9b02c3960fcc3ecaf2c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
~~Title: C# Tutorial~~
===== C# Tutorial =====

WIP

<note important>
The C# bindings are currently in BETA state.
</note>

==== Getting Started ====

=== Prerequisite ===

Before you start you may want to read about how to compile the EFL:

    * Installed from source: [[docs/distros/start]].

=== Dependencies ===

== Linux ==

You will need a compatible version of [[http://www.mono-project.com|Mono]] (4.0 or higher).
The paths to the ''mcs'' compiler and to the ''mono'' application must be in the ''PATH'' environment variable before compiling.

Once all conditions are met proceed to ??Compilation??.

== Windows ==

In order to have EFL on a Windows environment we highly recommend following [[https://phab.enlightenment.org/w/windows/|this guide]] which accomplishes that using [[win-builds.org|win-builds]] and [[http://www.msys2.org/|MSYS2]].

You will need a compatible version of [[http://www.mono-project.com|Mono]] (4.0 or higher).
You can use Mono binaries installed directly to your Windows system (i.e. outside the MSYS2 environment), you will just need to make sure that the paths to the ''mcs.exe'' compiler and to the ''mono.exe'' application are in the ''PATH'' environment variable in your MSYS2 terminal.
Using the default installation path, Mono binaries normally goes in ''C:\Program Files\Mono''; so in MSYS2 you can point to the binaries using the path ''/c/Program Files/Mono/bin''.
You can also permanently set this in your ''/etc/profile'' in MSYS2 adding something like this at the end of the file:
<code>
export PATH="$PATH:/c/Program Files/Mono/bin"
</code>
If you used another installation path to Mono just adjust the paths used.

Once all conditions are met proceed to ??Compilation??.

=== Compilation ===

In both Windows and Linux environments just


==== Example ====