Home > database >  .NET Framework 4.7.2 installed but not shown in the target type
.NET Framework 4.7.2 installed but not shown in the target type

Time:12-19

I have already installed .NET Framework 4.7.2 as shown in the screenshot below. But when I create a new project (or try to add a new project within an existing solution), the target type for .NET Framework 4.7.2 is not shown (shown in the second screenshot below).

enter image description here

PROBLEM: .NET Framework 4.7.2 is not present in the target framework

enter image description here

CodePudding user response:

When creating an application be sure to select correct template - Class Library (.NET Framework):

enter image description here

You have selected a template targeting .NET (i.e. .NET Core) or .NET Standard. Note that .NET Framework 4.7.2 supports .NET Standard 2.0 (see the docs), so you can create .NET Standard 2.0 library and reference it in a .NET Framework project.

  • Related