Developer forum

Forum » Development » Razor templates in VS2015 are giving a CS0103 intellisense error

Razor templates in VS2015 are giving a CS0103 intellisense error

Harald Brouwers
Reply

Hi,

I have a question about using Razor templates in Visual Studio 2015 and intellisense. In my project I keep getting a CS0103 error:

"Error    CS0103    The name 'Context' does not exist in the current context "

To test this I downloaded the DefaultEmptyData871 from the site and placed the Templates.csproj from (https://github.com/dynamicweb/razor/wiki/Editing-Razor-templates) in the templates folder.

When I open te file :\Templates\Designs\DynamicwebRazor\Master\Main.cshtml, I immediately get this error. I have added (at least) references to Dynamicweb.dll and the RazorEngine.dll

Could you tell me how I can open my Dynamicweb Razor templates in Visual studio without immediately getting Intellisense errors?

 


Replies

 

You must be logged in to post in the forum