❔ How to change asp.net core version in new visual studio 2022
The first picture is from recorded video few years ago and uses visual studio 2019.
The second picture is from my visual studio 2022.
I noticed the starting template that was generated differs a lot to template shown in video.
Is it possible if I could get this menu that enables me to choose versions on visual studio 2022?
6 Replies
What do you mean that the starter template differs?
Changing a version is easy, you just need to make sure the specific SDK is installed and... change the version
But you can't retroactively swap out the template you used
new asp.net template is not giving me startup.cs and starting code in program.cs is entirely different. I'm beginner to this so i'm trying to follow a tutorial.
Ah, right, .NET 7 consolidated the
Program.cs
and Startup.cs
into a single file, yep
You could create the project with .NET 6, then upgrade it to .NET 7
The files will stay the same, but you'll be using the new versionI'm using .net 6 already. so it might be .net 5?
I'll try installing it through individual components
this worked
Could be, yeah
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.