Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view cshtml page in visual studio?

I am using Visual Studio 2010 SP 1. On opening/creating any .cshtml page (view), I am unable to find the option to see the rendered page in VS as soon as I make any change (similar to "design" tab in web-forms).

Is this not supported in VS 2010 or am I missing something?

like image 649
Andy Avatar asked Apr 01 '14 06:04

Andy


2 Answers

If you need the visual assistance when designing, you can run your application without debugging ( Ctrl - F5 ), and then once updates are made, you can refresh the web browser to view updates. It isn't real-time, but at least it is something.

like image 152
Tim Jones Avatar answered Oct 03 '22 02:10

Tim Jones


The design view doesn't exist in MVC projects.

Take a look at this answer for more information: Is there any graphical designer for ASP.NET MVC?

like image 22
SlightlyMoist Avatar answered Oct 03 '22 04:10

SlightlyMoist