Did you notice that even if you have the latest Visual Studio (2017 v15.5.4) installed on your machine, you don't see .NET 4.7 coming in the framework selection drop down?
Yes, that's true as even in the latest Visual Studio version (when writing this blog), it's an optional component and you need to explicitly install in order to get .NET 4.7 template.
There are two ways to get it.
Using Project Installer
You can open VS 2017 installer in change mode (under Uninstall or change a program), here you have two ways to get .NET 4.7 as follows.
- Select .NET desktop development from workloads and select ".NET Framework 4.7 development tools" from right side (under optional section)
- Go to individual components tab and choose .NET 4.7 Targeting Pack and .NET 4.7 SDK (Now even 4.7.1 pack and SDK has come up) and click on Modify and follow the wizard.
Using separate installation of .NET 4.7 (or 4.7.1) developer pack from following URLs.
- http://go.microsoft.com/fwlink/?LinkId=852095 (Web installer .NET 4.7.1)
- http://go.microsoft.com/fwlink/?LinkId=852107 (Offline installer .NET 4.7.1)
- http://go.microsoft.com/fwlink/?LinkId=825299 (Web installer .NET 4.7)
- http://go.microsoft.com/fwlink/?LinkId=825303 (Offline installer .NET 4.7)
Hope, this blog post helps you to understand the issue and to know the fix.
Looking forward to your comments/suggestions.
References- https://developercommunity.visualstudio.com