When opening an already existing solution in Visual Studio, it says
The C# project \"...\" is targeting \".NETFramework,Version=v4.5.2\", which is not
I had this issue with .NET 4.6.2 (VS2017) - I downloaded the Developer pack from the link provided by the error message and installed, but it didn't help.
But then I opened up the Programs and Features in Windows Control Panel, and selected to "Change" Visual Studio 2017. The installer contains a tab entitled "Individual Components", and in there I saw that Targeting Pack for 4.6.2 was not selected.
Selecting them and selecting "Modify" fixed the problem.