标签:
I tried to use a .cshtml file and the razor syntax in a console application. I was able to build the project, but the intellisense and the error tab complaint about “The name ‘Model’ does not exist in the current context“:
The usual fixes, like throwing in a web.config, didn’t work. But then I found a fix to solve that problem. Here are the steps:
Reason: I guess it’s because in a normal web project there is only a bin folder, no Debug or Release. Visual Studio seems to look directly into that folder for…
Fix Visual Studio 2013 Razor CSHTML Intellisense in Class Library or Console Application
标签:
原文地址:http://www.cnblogs.com/baozhu/p/4415785.html