C
C#15mo ago
Top_Time

❔ 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?
No description
No description
6 Replies
Angius
Angius15mo ago
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
Top_Time
Top_TimeOP15mo ago
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.
Angius
Angius15mo ago
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 version
Top_Time
Top_TimeOP15mo ago
I'm using .net 6 already. so it might be .net 5? I'll try installing it through individual components this worked
Angius
Angius15mo ago
Could be, yeah
Accord
Accord15mo ago
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.
Want results from more Discord servers?
Add your server