Upgrading code files from U7 to U8. The following line of code now throws error CS0103: The name 'ApplicationContext' does not exist in the current context.
Had the same issue, but with ApplicationContext.Current.Services.RelationService; and it working for me removingApplicationContext.Current.