Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

not show cshtml file in add new item in visual studio

I am using visual studio 2022.
not show cshtml file in add new item in visual studio.
i am add mvc and razor and not show cshtml file or javascript file in add new item.

enter image description here

like image 268
A.R.SEIF Avatar asked Nov 15 '25 14:11

A.R.SEIF


2 Answers

Make sure you choose to install the ".NET Framework project and item templates":

Screenshot showing selected optional features in installer, including the aforementioned .NET Framework project and item templates

like image 93
Minh Do Avatar answered Nov 18 '25 04:11

Minh Do


Select the ‘Web’ section in the menu sidebar. It (All installed razor controls) should be there if razor is installed. enter image description here

like image 31
Wriar Avatar answered Nov 18 '25 03:11

Wriar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!