1

It is said here Can we use Razor on an existing ASP.NET 4 website? that I should see it even in webform project if MVC3 is installed but I can't. Why?

Isn't Razor installed with MVC3?

Community
  • 1
  • 1
user310291
  • 36,946
  • 82
  • 271
  • 487
  • Razor needs to be installed too. – Oded Sep 04 '11 at 16:59
  • Have you added the Razor page? in .aspx page Inellisense will not work. From answer you refer: **You don't need to create a new Web Pages site (as per the instructions). You can just open up an existing web site, right click the site's root folder, click add item and you should see "Web Page (Razor)" as an option.** – Samich Sep 04 '11 at 17:01
  • Yes it's installed since I said Mvc3 is no? – user310291 Sep 04 '11 at 17:03

1 Answers1

0

AFAIK Visual Studio provides support only for ASP.NET Websites (using .NET 4.0 of course) and not for ASP.NET applications. This being said there is nothing preventing you from adding manually a .cshtml page to an existing ASP.NET application and it will work. It's just that you don't get the Visual Studio Wizard support but who cares about it anyway?

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928