I just installed new VS and opened existing project.
It is showing error:
"The C# project "..." is targeting ".NETFramework,Version 4.7" which is not installed on this machine...
But I just installed new VS (November 2018) and pretty sure it comes with newer .NET.
What configuration settings I should change to make this work (open existing project with correct .NET version)?
Right click on project, Properties --> Application --> Target framework
. Target framework dropdown displays list of frameworks installed on your machine.
It's not enough to install the latest version of Visual Studio; you need to ensure that you're actually installing the version of .NET Framework you want. It won't install all of them by default.
Conversely, you can also go to the Individual Components section and find the .NET Framework 4.7 SDK/Targeting Pack components and install them from there as well (they should be at the top of the list).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.