-1

i try to target framework which already installed on my pc without success this when creating new simple console project : enter image description here

but when i try to install for example 4.8 framework it says that this framework is already installed enter image description here

Also in the registry, i can i have 4 ( but I don't see 5 ) : enter image description here

what im missing here ?

user63898
  • 29,839
  • 85
  • 272
  • 514
  • 1
    There is a rash of devs picking the wrong project template to get started. You need "Console App (.NET Framework)", that one lets you target 4.8. The one you got now is named "Console App (.NET)", it can only target .NET Core versions (like .NET5). – Hans Passant Apr 11 '21 at 16:40
  • this is what visual studio listed when i create new project – user63898 Apr 11 '21 at 19:41

1 Answers1

0

For VS (and other developer tools) to work you need the Developer Pack for that version of .NET.

This is a different download to the normal, runtime only, installer.

Richard
  • 106,783
  • 21
  • 203
  • 265