Steps
  1. Open Visual Studio in your system
  2. Select Console Applciation template and give as name "CreateList"
  3. Add a Microsoft.Cleint Assembly refrence file in right side refrence tab in visual studio.
  4. Replace Program.cs with the source code below.
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using Microsoft.SharePoint.Client;
  6. namespace CreateList
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. // ClientContext - Get the context for the SharePoint Site
  13. ClientContext clientContext = new ClientContext("http://gauti.sharepoint.com/sites/SP/");
  14. // Specifies the properties of the new custom list
  15. ListCreationInformation creationInfo = new ListCreationInformation();
  16. creationInfo.Title = "NewList";
  17. creationInfo.Description = "new list created using VS 2012 &CSOM";
  18. creationInfo.TemplateType = (int) ListTemplateType.GenericList;
  19. // Create a new custom list
  20. List newList = clientContext.Web.Lists.Add(creationInfo);
  21. // Retrieve the custom list properties
  22. clientContext.Load(newList);
  23. // Execute the query to the server.
  24. clientContext.ExecuteQuery();
  25. // Display the custom list Title property
  26. Console.WriteLine(newList.Title);
  27. Console.ReadLine();
  28. }
  29. }
  30. }
Output

Hit F5 and see the magix happend in SharePoint 2013. Hope you have enjoyed this.!!! :-)