0

I am starting to study ASP.NET MVC but now I see that I don't have the whole "web section" when I open new project. Before I studied pure C# (Console Applications) so I didn't really need it and I haven't noticed that it doesn't exist in my Visual Studio.

enter image description here

So I can't make a new MVC project... How can I add it? Is there a way of adding it without reinstalling the Visual Studio? PS: I use Visual Studio 2015 Community.

Suhaib Janjua
  • 3,538
  • 16
  • 59
  • 73
dipper
  • 11
  • 3
  • Try changing the framework version in the dropdown. .NET Framework 3.5 is only for legacy applications - you should be using .NET Framework 4.5+ for new applications. It should also change what you see in the list of options. – NightOwl888 Feb 25 '17 at 10:38
  • @NightOwl888 how can i change it to 4.5+ ? I mean I only have 2.0, 3.0, 3.50 and option. Should I click the "More Frameworks" option? – dipper Feb 25 '17 at 10:44
  • @dipper check this http://stackoverflow.com/a/27469861/619131 – Ali Sheikh Nezami Feb 25 '17 at 10:55
  • @AliSheikhNezami i saw it... but it says how to fix it with reinstalling the Visual Studio – dipper Feb 25 '17 at 10:56
  • @dipper you most do it to fix your problem dude ! – Ali Sheikh Nezami Feb 25 '17 at 10:57
  • @dipper - you can install more frameworks by installing the [developer pack](http://stackoverflow.com/a/23618042/181087) for the corresponding version number. I am not sure if that will fix your original issue, though - you may need to do a "repair" on Visual Studio 2015 Community in order to install that option - and to do that you need to run the installer for it again. – NightOwl888 Feb 25 '17 at 10:59
  • @NightOwl888 ok for now i installed the dev pack and tried to modify my Microsoft Visual Studio Community with Updates from the control panel. But the Microsoft Web Developer Tools was already checked... Anyway trying to do a "repair" now – dipper Feb 25 '17 at 11:21
  • @NightOwl888 still dont have it... – dipper Feb 25 '17 at 12:41
  • You might want to go through the [prerequisites](https://social.technet.microsoft.com/Forums/en-US/f18e46ae-f6ae-4e34-b0be-5fe7198d7026/prerequisites-to-install-visual-studio-2015?forum=winservergen) and make sure you have them all installed. Also, once you have done that, it may be necessary to uncheck the "Web" option on the first repair, and then do another repair with that option checked. – NightOwl888 Feb 25 '17 at 13:35

1 Answers1

0

Try running the installer once again and select the appropriate checkboxes for ASP.NET or Web development.I think you may not have selected that option when installing or it might have got missed.

ashish
  • 2,028
  • 1
  • 10
  • 6