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).
PROBLEM: .NET Framework 4.7.2 is not present in the target framework
CodePudding user response:
When creating an application be sure to select correct template - Class Library (.NET Framework):
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.