Missing ASP.NET Core Web Application from Visual Studio 2019 - c#

I am trying to build a new project at visual studio but I cant find "ASP.NET Core Web Application" from my visual studio. I find only ("ASP.NET Core Web Application(.net FRAMEWORK")). I tried everything. I updated visual studio. I have installed everything of its package and still nothing. I downloaded the Visual studio 2017 and I finally had it but at visual studio 2019 it is I can't. Looking forward for any opinion.
thank you!

In order to get .NET Core templates you should
Open Visual Studio Installer (press Win key and search for it)
Click on "Modify
Check "ASP.NET and web development", then scroll to the bottom and check ".NET Core cross-platform development"
Click "Modify" in left bottom corner and wait for it to install

It's because Visual Studio changed the name of:
ASP.NET Core Web Application to ASP.NET Core Web App.
https://i.stack.imgur.com/zoHFH.png

I just had a very similar issue. I did have "ASP.NET and web development" and ".NET Core cross-platform development" installed as suggested by #krazors. However, there were no APS.NET Core templates available.
The issue was eventually resolved by rebooting.

I had same problem. I was missing .Net 5.0 Sdk. Firstly modify vs from vs installer by removing ASP.NET and Web Development. Then install .Net 5.0. Lastly modify vs back by uploading ASP.NET and Web Development on vs installer.

Related

Visual Studio 2017 - How to get the "New publisher Wizard"

I have a problem with publishing an app in VS 2017 with the Publishing Wizard. I found a stackoverflow post:
Compile a .NET Core application as an EXE file using Visual Studio 2017
But when I want to go to this menu it only opens an old Publishing Wizard that doesnt have the options I need.
I tried to update my VS 2017 to the newest Version, but it didnt help...
After that I tried to use the first approach of the stackoverflow post above, but I didnt have dotnet(???) so installed .NET 7 SDK. Tried the command in the project directory (where the .csproject lays), but I got the error: MSB4062. So Im back trying to get the new publisher, because I really dont know how to fix MSB4062.
Picture of my Publishing wizard:
Picture of the one I want:
[]
The Publish Wizard is usually the first time you publish a project and will guide you to publish the project to the specified location.
After completing the Publish Wizard, you will find Publish Settings in the Publish view and configure it. Hope it can help you
I needed a .NET Core / .NET console app, but I had a .NET FRAMEWORK console app.
And to create a .NET Core / .NET console app I needed Visual Studio 2022 (maybe 2019 is enough), but I had Visual Studio 2017.
This fixed everything for me.

ASP.NET MVC template does not exist under MS Visual Studio 2010 new project wizard

I have Visual Studio 2010 Professional installed on my Windows machine. I don't want to uninstall it and install VS 2017 yet, cause it may mess with my VS 2010 projects so please do not suggest that.
The problem I have is that ASP.NET MVC does not show under File->New Project-> Installed Templates -> Visual C#-> Web. I have tried the suggestions of this SO question but it did not help: ASP.NET MVC 4 Visual Studio 2010 project templates not present namely reinstall my templates with devenv /installvstemplates. I installed sometime ago MVC 2, MVC 3 and MVC 4 using the Web Platform Installer but none of them shows up. Can anyone help?

missing "ASP.NET Core Web Application (.NET Core)" template in Visual studio 2015 update 3?

I have Visual studio 2015 update 3. and I don't see the ASP.NET Core Web Application (.NET Core) template.
Do I need to switch to Visual Studio "15" Preview 4 ?
https://www.visualstudio.com/en-us/news/releasenotes/vs15-relnotes
Or will it get added to VS 2015 ? What am I missing?
I faced the same problem...,
Solution that worked for me:
went to Tools > Extensions and Updates > Updates
if the problem is an outdated extension, you will see it under updates else you can search for it in the online tab or you can use this Link
which worked for me.
But I recommend that you use visual studio to get the current version.
Make sure to close visual studio before performing the install.
Updated Download Link
https://www.microsoft.com/net/download/windows
You should install .NET Core 1.0.1 - VS 2015 Tooling Preview 2
Solution that worked for me:
Go to Visual studio tools > Extensions and Updates > Updates -> Visual studio gallary
If you see Update for Microsoft.Net Core hit update and it should work.

'ASP.NET Web Application' template not there

I just re-installed Visual Studio Community 2015. I'm following a MS Tutorial, first step is creating a Project by choosing templat: 'New Project > Installed > Templates > Visual C# > Web'. I should then be able to select the 'ASP.NET Web Application', but it's not there to choose. And changing to different frameworks does not help. I've re-installed choosing 'Web Development', but that does not help. All I see are the 'ASP.NET Dynamic Data Entities Web Application' and 'ASP.NET Facebook Application' choices. I'm thinking somethings not installed correctly, or I'm missing an install package? -Thanks
Try running just the ASP .NET setup from the following URL:
https://get.asp.net/
You'll find installers for both the full ASP.NET or the all-new ASP .NET Core (aka ASP .NET 5)
If that doesn't work, download the entire VS2015 Community Edition ISO file and then mount it as a virtual drive to run the complete setup locally. If you're not sure how to get the ISO file, start here:
https://www.visualstudio.com/downloads/download-visual-studio-vs
Scroll down and expand Visual Studio 2015 on the left menu, then click Community 2015 on the left. On the right, select ISO then click the Download button.
See screenshot below, with red-circled areas:
Hope that helps!

How do I use a Local IIS with .NET Core, C# 6 and Visual studio 2015?

Previously when working with .net 4.5 and Visual Studio 2013, I could just right click the project, select Web and choose Local IIS like this:
Here I could select a URL for my application and stuff like that.
However, in Visual studio 2015 it looks like this:
How do I use a local IIS? I dont want to start IIS express everytime, I just want to build and then refresh the page like I always have done... :)
That's because in VS 2013 you're using ASP.NET 4.5 -or similar- Web application.
In VS2015 you can also use that one but as you can see in your screenshots that project properties screen is for ASP.Net 5 preview project
So, for ASP.Net 5 preview there's no current support for Local IIS.
This screenshot is from VS 2015 with both types of projects:
You can take a look to the ASP.Net 5 roadmap here
ASP.NET 5 Schedule and Roadmap
As a Workaround you can follow the 'manual steps' listed in this other stackoverflow post
ASP.NET 5 project hosting on IIS

Categories

Resources