Did you follow the upgrade procedures? There were instructions stating that you should check out virtual objects like transformations and templates and such to the file system. This will allow you to fix any errors easier in Visual Studio.
v8 does not have CMSContext namespace any longer. You can simply remove that and it will resolve your problem. The context namespaces are more specific now like DocumentContext or SiteContext or MembershipContext.