Visual Studio 2010 missing ASP.NET projects templates? - asp.net

So brand new installation of .NET Framework 4.0 and Visual Studio 2010 on a brand new computer. Loading up Visual Studio 2010 and selecting New Project only lists the following project typess under "Web":
ASP.NET MVC 3 Web App
AjaxControlExtender
AjaxServerControl
ASP.NET Server Control
All of the other project types are missing and I can't load existing .NET projects (gives me the "project type not supported" error. Any idea what happened or how I can reinstall the missing templates?
I've already tried running devenv.exe /installvstemplates with elevated privileges.

If you didn't install the Visual Web Developer component, the ASP.NET project templates won't be fully installed. Naturally, because the installer then thinks it doesn't need to put them there as ASP.NET is a web development framework.
In that case, just run the installer again and make sure Visual Web Developer is checked. The installer will then add the appropriate project templates.

Default Project Templates in Visual Studio
Available templates may vary according to Visual Studio version, SKU,
installation options, and other customizations. If you are missing a
template that comes with your installation, run devenv.exe with the
/installvstemplates switch. For more information, see How to:
Restore Default Project Templates.

Related

ASP.net Core Web Application Template is missing

I am trying to follow this tutorial: https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start
However, when I get to the Create a Razor Web App section, there is no template in my install of VS2017.
I have both the .net core and asp.net and web dev workloads installed. Where have I gone wrong?
Open Visual Studio (assuming its 2017) and go to: Tools > Extensions and Updates
Click "ASP.Net and web development", then select the appropriate Individual Components in the right hand pane. You'll find components such as ".Net Core 2.0 Development tools" and ASP.Net web development tools"
Have you got the latest update for your Visual Studio installation?
Head to Add or Remove Programs
find Visual Studio
Click Modify
Allow the installer to update
Install any updates that are missing
On top of that, do you have the latest version of the .NET Core SDK?
It seems I had an OS issue that caused updates to fail. Have rebuilt the PC and all working as expected now. Very much a sledgehammer approach, but this was something fundamentally wrong with the installation.

I am not able to find the ASP.net Web Application template in Visual Studio Enterprise 2015

I recently installed Visual Studio 2015 Enterprise Edition. I was not able to find the ASP.net Web Application template in it.
I have already tried the following
Repair the setup.
Modify setup and uncheck and check Microsoft Web Developer Tools option.
Install Visual Studio 2015 Extension for ASP.NET Project Templates as outlined here. http://blogs.msdn.com/b/webdev/archive/2015/02/08/some-of-asp-net-project-templates-in-vs-2015-are-available-on-vs-gallery.aspx
Clean up registry keys, delete all setup files and clean installation.
What can I do to get the OneASP.net template to develop MVC and WebAPI applications.
please refer the above steps to check if you can create a MVC project in Visual Studio 2015 Enterprise Edition.
If you still could not see the MVC project template in Visual Studio 2015 Enterprise Edition, I suggest you could try to delete ItemTemplatesCache, ProjectTemplatesCache folder and then run the the devenv /InstallVSTemplates switch and devenv /Setup switch. Please refer to the following MSDN document and then check this MVC project template issue.
Reference: https://msdn.microsoft.com/en-us/library/ms241279.aspx?f=255&MSPPError=-2147217396
https://msdn.microsoft.com/en-us/library/ex6a2fad.aspx

MVC 5 -> MVC 5.1 Migration. Intellisense issues

I just updated my project to MVC 5.1 from MVC 5. The main web.config file got updated automatically, but web.configs under main View and Areas folders weren't changed. I suspect that's why now I lost both intellisense and resharper support for my actions, controllers and areas.
Does anyone know correct web.config content for MVC 5.1 Views? Just replacing 3.0.0.0 to 3.1.0.0 and 5.0.0.0 -> 5.1.0.0 did not solve the issue.
It happens in both Visual Studio 2012 and 2013 Professional.
Found a solution from this MS article:
MVC 5.1 Tooling Support and Razor IntelliSense are Still Broken Even
After Installing VS2013 Update 1 RC
Known issue:
If a VS2013 user installed “Microsoft ASP.NET and Web Tools 2013.1 for
Visual Studio 2013” before they install VS2013 Update 1 RC, they won’t
be able to get MVC 5.1 tooling support that comes with VS2013 Update 1
RC.
Symptom:
MVC 5.1 tooling support and Razor IntelliSense are still broken even
after installing VS2013 Update 1 RC.
Workaround:
From "Add/Remove Program", uninstall "Microsoft ASP.NET and Web
Tools 2013.1 for Visual Studio 2013"
Repair VS2013 RTM
Install VS2013 update 1 RC if you have not yet installed it. If you have
already installed this, you don’t need to reinstall or repair it.
From Web PI, reinstall Microsoft ASP.NET and Web Tools 2013.1 for
Visual Studio 2013 or repair Azure SDK 2.2.
Update NuGet Packages
Steps:
Select TOOLS –> NuGet Package Manager –> Package Manager Console. This opens the Package Manager Console pane.
In command prompt, type Update-Package and press Enter.
This command will update the MVC files and activate the intellisense again.
Well if you update to ASP.NET MVC 5.1 RTM without updating Visual Studio 2013, you will not get Visual Studio editor support for syntax highlighting while editing the Razor views. You will need to update Visual Studio 2013 to get this support.
So it is not directly connected with IntelliSense or Resharper. But anyway I would try to update VS13 to VS13 Update 1
Update NuGet Packages in Package Manager Console.
Verify the current version of System.web.MVC and update it in the Views/Web.config file and also verify the version in Web.config of Root folder.

Why does Visual Studio Premium 2010 not show all of the available project templates?

I'm trying to create an ASP.NET Web Application, but this is all I see:
http://img832.imageshack.us/img832/8444/newproject1l.png
http://img837.imageshack.us/img837/3119/newproject2.png
I have confirmed that I have the full Visual Studio installed, not just Visual C#.
Why can't I see ASP.NET Web Application in the "new project" list?
Based on the interface it looks like the "Web Tools" section was unchecked while installing Visual Studio. Try re-running the install, explicitly selecting Web Tools (can't remember the exact name) and seeing if that fixes the problem.

Unlocking asp.net mvc templates in VS 2008

Ok so i downloaded the asp.net mvc through the web platform installer. Rebooted the machine and fired up VS 2008 express. Lo and behold there were no website/project templates that could setup an mvc project. I did a little research and found out they would not show up in the express version. No matter - i got team suite edition too so i installed that and hoped for the templates to show up. They did not, so i reinstalled the mvc and they still won't show up.
I hate this part of developing - i just want to dognammed tools to work - what am i doing wrong - why won't the templates show up? I can't seem to uninstall mvc now and reinstalling just tells me that it's already installed...
If you have asp.net mvc installed and don't see templates in visual studio, you should try to run administrative command prompt and run devenv - setup so that templates can be registered.
c:\Windows\system32>cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>devenv - setup
this should help
If you installed Team Suite after mvc, it won't see the templates. Try reinstalling MVC, it's light and shouldn't take long.
Are you sure? I thought that but it HAS to be .NET 3.5 AND it's a Web Application from the New Project dialog and not through the New Website dialog. Annoying but alas!

Resources