Creating a new project using Xamarin Studio
suggest change- Download and install Xamarin Studio Community.
- Open Xamarin Studio.
- Click File → New → Solution.
![](/essential/csharp/img/f5acfe249a5597c61bdfaa96bcfb14fbc6588363.png)
- Click .NET → Console Project and choose C#.
- Click Next to proceed.
![](/essential/csharp/img/4ca34e5dcf31b1516d1460ff007c39fe3eff5fa2.png)
- Enter the Project Name and Browse… for a Location to Save and then click Create.
![](/essential/csharp/img/77b7b022a509ac6415e9b82b269df1ed592b6e65.png)
- The newly created project will look similar to:
![](/essential/csharp/img/ad19763b50ba276a43026fb6c6a4176664197200.png)
- 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();
}
}
}
- To run the code, press F5 or click the Play Button as shown below:
![](/essential/csharp/img/d481ea4778907af19b64e1e04971c998da919a04.png)
- Following is the Output:
![](/essential/csharp/img/9f2b0a75eb5c9070a987e2df600e46a274590cee.png)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents