The following line does not compile when I put in a Razor View.
var extPropLookupNameCompania = $\"extension_{SettingsHelper.ClientId.Replace(\"-\", \"\")}_{
If you are experiencing this error in a .NET Framework 4.5.1 project, upgrading to 4.5.2 solves the problem.