ASP.NET MVC C# Web Section Missing - c#

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.
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.

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.

Related

Missing ASP.NET Core Web Application Template and all ASP.Net Core Templates in Visual Studio 2019

I do have a very odd problem with Visual Studio 2019 (Professional version 16.9.2) when trying to create a new project with a ASP.NET Core Web Application template.
Although I have a a lot of templates available, my list of new project is desperately not showing the template, and none of ASP.Net Core ones (the ones with the little planet, a circle and a blue dot icon) this is the icon I don't have, it's not taken from my machine
My version of VS is up to date, I've installed the .NET Core cross-platform development my Visual Studio configuration
I've installed the .NET Core package (I tried with all versions).
No matter which option I'm chosing in the Update tool, I still have the same list of templates, it never changes.
I've reinstalled VS from scatch. I've tried on 4 different machines (1 physical machine, 1 virtual desktop and 2 servers). I've also tried from line command prompt by using dotnet new, but I do have exactly the same list then the one in VS.
I've also tried to change the templates location from my local profile folder to the C:\Program Files(x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ProjectTemplates
But the templates list remains the same.
I'm out of ideas, sounds like I tried almost everything, for now I'm stuck!
If anyone among you has any idea or already had this issue, please let me know!
Thanks everyone for any help you could grant.
I finally found a way to have the 'missing' template. It seems that in VS 2019 the ASP.NET Core Web Application template has been replaced by the ASP.NET Core Empty.
I had to tweak it a little, but seems to be now Ok.
I hope this helps some folks
Install the ASP.NET and web development workload.
Visual Studio Installer -> Click on Modify -> Select ASP.NET and web development workload.

Visual Studio 2015 Express for Web unable to find MVC 4

I understand there are various posts similar to this issue but there are none which match the problem I am having.
I have downloaded Visual Studio 2015 Express for Web, but I cannot create an MVC 4 web application as this option is not available when I create a new project.
I have tried to find the tools in the NuGet package manager but I have had no success.
Using the web platform installer I have managed to download an ASP.NET MVC 4 with language packs (2012) but that hasn't seemed to have any effect on my visual studio (I'm not even sure if its installed correctly).
Any help or guidance on this issue would be greatly appreciated.
EDIT: This is the options I have when I select "New Project":

How do I make a MVC project appear properly in Visual Studio?

How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio.
For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file.
Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution?
Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work:
http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture_02_zps6vn4ri07.png
http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture_zpscdczk1b4.png
From your screenshots, it looks like you're using an old version of Visual Studio (either 2008 or 2010, there isn't enough showing to be sure, but I see the default .NET framework listed as 3.5 up there).
The latest versions of the ASP.NET MVC framework requires .NET 4.5. Visual Studio 2010 doesn't support this, so the solution is to upgrade to a newer version of Visual Studio which includes support and project templates specifically for the latest versions of ASP.NET MVC.

Missing ASP.Net Web Application From New Project Dialogue Box

I have Vs-2005 IDE where ASP.Net Web Application for C#-Application is missing or not available on New Project Dialogue Box where the new application can be design.
Is it possible to recover it without UnInstall and Re-Install the software of VS-2005?
Note:- It was there on use of first time but when I started to use windows application in c# then it was disappear from the new project list. don't know why?.
There are more info needed like the version of the IDE. You should probably have a Visual C# Express Edition and you must probably install a Visual Web Developer 2005 Express Edition for solving it. But it's all an assumption...
In Visual Studio 2005 you need to install SP1 in order to have the ASP.NET Web Application template project.

How to install ASP.NET MVC 2 templates after already installing VS Web Dev 2010 first?

First off these questions are related but do not fix my problem:
Missing Project Template after installing ASP.NET MVC 2
Used Web Platform installer to install the MVC Framework but the MVC template isn't available
I have installed Visual Studio Web Developer Express Edition 2010, then I installed MVC 2. Now I can successfully run a MVC 2 application, however I have to do the manual imports of the namespaces and stuff.
How can I install the templates?
You could try copying the project templates from the default folder into the personal templates folder. To do this:
Go to "%PROGRAMFILES%\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Web\1033" (folder might vary since I'm using VS2010 Ultimate, but you can locate the folder easily by just looking for ProjectTemplates folder at %PROGRAMFILES%).
Locate and copy the MvcWebApplicationProjectTemplatev2.0.cs.zip and EmptyMvcWebApplicationProjectTemplatev2.0.cs.zip files into "%HOMEPATH%\My Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual C#"
If you are running Visual Studio you'll need to restart it before you can see any effects.
Note that if you are VB.NET instead of C# you'll need to adjust the provided paths to match VB.
Nevertheless I'd suggest that you try uninstalling and then re-installing ASP.NET MVC since this steps won't plug-in all the tooling MVC provides for VS.

Categories