web.config.transform for Views was putting the namespaces in the wrong section. Changed it to system.web.webPages.razor instead of system.web.