SharePoint 2010: Building a SharePoint Console Application

If you are using SharePoint Server 2007 to build a console application, you would do something like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint;   namespace ConsoleApplication { class Program { static void Main(string[] args) { using (SPSite spSite = new SPSite("http://demo2010a")) { using (SPWeb spWeb = spSite.RootWeb) { Console.WriteLine(spWeb.Title); } […]