Did you properly add in the .dll references? Follow this: [How-to] Setting up C# and creating a basic resource