Pankaj Kumar
Pankaj Kumar

Reputation: 685

.cshtml files are not getting visible?

I am new to MVC and in the learning phase. I Just installed the VS2010 in my system and trying to learn, by making a small application in the MVC but when I saw the tutorial there were some files in view folder having extension of .cshtml but when I created the project there was no file like this there were only aspx files, so where I am doing wrong.

Upvotes: 1

Views: 479

Answers (3)

user2319671
user2319671

Reputation:

There are two types of view engine available in Visual Studio 10. You need to select Rajor view engine while creating your project.

You can see following link for your reference. http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4

Upvotes: 1

Golda
Golda

Reputation: 3881

You have to choose the view engine as "Razor". Then it will create the view as .cshtml

Choose Razor

Upvotes: 0

Florin Pilca
Florin Pilca

Reputation: 160

Visual Studio 2010 does support Razor Views. When creating a new MVC Project in VS just select Razor instead of ASPX in the View Engine Drop Down List.

Please see this link for and example Screen Shot: http://postimg.org/image/g15x54sbx/

Upvotes: 2

Related Questions