Visual Studio Missing .NET Core Versions 6,7,8 in Target Framework Dropdown

preview_player
Показать описание
Here's a quick video that should help if you try to start coding in .NET Core 6, 7, or 8 in Visual Studio but the newer versions aren't listed in your Project's Target Framework drop-down list in the Application General tab.

I feel the solution is so stupid but neither is it very obvious from a usability standpoint.

Hopefully this should work in Visual Studio 2019 and Visual Studio 2022.

Be sure to download the appropriate x64, x86 or Arm64 versions depending on your particular development environment.

Incidentally if you change the Target Framework to one of the newer versions of .NET Core and your Project or Solution doesn't compile, then don't panic. A good thing to try first is to Clean your Solution. Then try building the Solution a couple of times. You could also manually delete the Obj folder from the Project you're unable to successfully build. This action worked for my own Project.

I may also be wrong but I don't think there's a tonne of major changes to the framework itself between .NET Core 3.1 and versions 6, 7 and 8. I think there's just been a major reorganisation of the internal code. .NET and .NET Core are now in the same Framework, and the ability to deploy to non-Windows platforms has been enhanced.

Happy coding :)
Рекомендации по теме
Комментарии
Автор

Didn't work for me, and guess what? I had to update visual studio AGAIN. I've updated it yesterday to 17.7.7 using "Check for updates", but to see .NET 8 target I've installed today I had to check for updated again to version 17.8.0, that was released 2 days ago.

Lord_Omni
Автор

Hi Brett, I am not able to change Target OS Version with .NET 7.

kailashkumarp
Автор

I've done it. Hurray !😄 I'm that genius 🤣.

vxomsip