Reputation: 4174
I enjoy working with ASP.NET MVC 3 using the Razor view engine, but am embarrassed to admit that not having the ability to preview the pages (.cshtml) in the Visual Studio designer negatively affects my productivity.
Is there a fundamental reason why Visual Studio won't preview Razor pages or is it simply a matter of Razor being relatively new (and released out of band), in which case we might expect preview in Visual Studio 2012?
Upvotes: 14
Views: 11109
Reputation: 499252
It is indeed just a case of Razor being so new. No doubt preview will work with Razor in a future version (who knows, perhaps a service pack to 2010 will add this). However, as @marcind points out, this is speculation on my side...
Upvotes: 0
Reputation: 6077
Because there is no designer for it. You can preview it by running it.
I disagree about the productivity. In the past, with the ASPX designer, my markup was often destroyed (maybe it's better now)
Nobody knows if a designer will be there in the future. But according to this page there is a workaround available.
Upvotes: -1