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 48 49 50 51
|
1. Download and install [Xamarin Studio Community][1].
2. Open Xamarin Studio.
3. Click **File** → **New** → **Solution**.
[![Creating New Project in Xamarin Studio][2]][2]
4. Click **.NET** → **Console Project** and choose **C#**.
5. Click <kbd>Next</kbd> to proceed.
[![Choosing Template for new project][3]][3]
6. Enter the **Project Name** and <kbd>Browse...</kbd> for a **Location** to Save and then click <kbd>Create</kbd>.
[![Project name and location][4]][4]
7. The newly created project will look similar to:
[![enter image description here][5]][5]
8. This is the code in the Text Editor:
using System;
namespace FirstCsharp
{
public class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadLine();
}
}
}
9. To run the code, press <kbd>F5</kbd> or click the **Play Button** as shown below:
[![Run the code][6]][6]
10. Following is the Output:
[![output][7]][7]
[1]: https://store.xamarin.com/
[2]: http://i.stack.imgur.com/hHjMM.png
[3]: http://i.stack.imgur.com/s58Ju.png
[4]: http://i.stack.imgur.com/lrK8L.png
[5]: http://i.stack.imgur.com/vva82.png
[6]: http://i.stack.imgur.com/6q4ZN.png
[7]: http://i.stack.imgur.com/cqBsK.png
|