Home > Blockchain >  How I do target Framework 4.8 when I have VS2022 installed
How I do target Framework 4.8 when I have VS2022 installed

Time:07-15

Since I have installed VS2022, I can not create a new project targetting framework 4.8.

Whenever I click "New project" from within VS2019, it seems to invoke VS2022 which leaves me with no choice but NetCore or Framework 5. Both don't work for me.

I start VS2019:

enter image description here

Now I click "Create new project":

enter image description here

enter image description here

enter image description here

enter image description here

So, there seems to be no way to do what I want.

enter image description here

"Installing other frameswork..." does not help. I already have them installed, so their installer only offers me to restore / modify / repair them.

enter image description here

What else could I try?

Edit: Yes, in the installer, Framework 4.8 is activated:

enter image description here

CodePudding user response:

You should select the Windows Forms App (.NET Framework) project template. If you select the Windows Forms App project template , then it will only have .NET Core or.NET 5/6 as targets. Project Template NET Framework

Then you can select the .NET Framework version you need for your project enter image description here

  • Related