Make sure you are in the group WSS_ADMIN_WPG
Make sure you target .NET 3.5
Make sure you target x64 platform as SharePoint 2010 only runs on 64 bit comps.
When updating remember to call Item.update
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
When updating remember to call Item.update