I created a RazorFunctions.cshtml file on App_Code
@functions { public static string GetActiveClassIf(string controllerName, string actionName = null)
After trying a variety of the solutions proposed here, it turns out that simply quitting Visual Studio 2015 and then restarting it was enough to get the Solution/Project to successfully compile once again.