conficient / RazorTemplateClassLibrary

Demonstrates amendments to C# class library to enable IDE support for Razor templates.
MIT License
6 stars 3 forks source link

Intellisense support in vs2012 #1

Closed blemasle closed 10 years ago

blemasle commented 10 years ago

Hi,

I'm currently using RazorEngine with vs2012 and looking for intellisense support inside cshtml views.

I can't get intellisense working right now in my project as in your project example. Have you tested your solution with vs2012 or it is only working with vs2013 ?

Cheers

conficient commented 10 years ago

I did the creation and testing in VS2013, yes - I've just tried it in VS2012 and it is not working there. Will see if I can figure out what the difference is. Thanks for spotting that.

conficient commented 10 years ago

OK, the bug is not in my code, but in the VS2012 configuration.

The code and settings I used are for MVC v5 and Razor v3, and you need to install ASP.NET and Web Tools 2013.1 for Visual Studio 2012 for Intellisense to work for MVC 5 and Razor 3. This is required for any MVC5/Razor3 support.

Hope this helps

blemasle commented 10 years ago

Thanks. It's working nicely now ! Didn't see that Razor v3 was indeed the issue with vs2012 !