Anyone knows why am getting this error message when saving a Razor file ?
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1b8e1135\9679c263\App_Web_634631739213588000_pagename.cshtml.70df5e80.na6aejot.0.cs(27): error CS0138: A using namespace directive can only be applied to namespaces; 'umbraco.MacroEngines.ExtensionMethods' is a type not a namespace
Error msg when saving CSHTML
Anyone knows why am getting this error message when saving a Razor file ?
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1b8e1135\9679c263\App_Web_634631739213588000_pagename.cshtml.70df5e80.na6aejot.0.cs(27): error CS0138: A using namespace directive can only be applied to namespaces; 'umbraco.MacroEngines.ExtensionMethods' is a type not a namespace
This is similar to this topic. The obvious thing would be to check that you don't have a statement saying:
It would need to be:
(Since ExtensionMethods is a class, not a namespace).
is working on a reply...