The following is based on the guide from https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?view=vs-2019

In Solution Explorer, select your project. Menu > Project > Unload project (only shown when you have the pruoject selected)

This unloads the project (.vcxproj) file for your project.

Menu > File > Open > File > In the Open File dialog box, navigate to your project folder, and then open the project (.vcxproj) file.

In the project file, locate the <TargetFrameworkVersion> entry. Change to the version you want to use.

Save the changes and close the editor.

In Solution Explorer right click the project and choose Reload Project.

To verify the change, in Solution Explorer, right-click to open the shortcut menu for your project (not for your solution) and then choose Properties to open your project Property Pages dialog box. In the left pane of the dialog box, expand Configuration Properties and then select General. Verify that .NET Target Framework Version shows the new Framework version.

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.