Skip to content

Instantly share code, notes, and snippets.

@vgrem
Created May 20, 2013
Embed
What would you like to do?
CS-Script: Hello world for SharePoint
//css_host /version:v3.5 /platform:x64;
//css_dir C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI;
using System;
using Microsoft.SharePoint;
namespace CSScript4SP
{
class Program
{
static void Main(string[] args)
{
using (var site = new SPSite("http://intranet.contoso.com"))
{
using (var web = site.OpenWeb())
{
Console.WriteLine("Hello SP!");
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment