public override bool ShouldEnableFor (Project proj, string projectPath) { if (proj == null) return true; var aspProj = proj.GetFlavor<AspNetAppProjectFlavor> (); if (aspProj == null) return false; var versionStr = aspProj.GetAspNetMvcVersion (); if (versionStr == null) return false; Version version; if (minVersion != null && Version.TryParse (versionStr, out version) && version < minVersion) return false; if (razor) return aspProj.SupportsRazorViewEngine; return true; }