不能选择.NET 4.7

我正在尝试开始一个新的项目。NET 4.7.我已经安装了 CreatorUpdate 以及 VisualStudio2017的最新版本。当我启动一个项目和设备时,选择一个。NET 版本,最新版本。NET 框架版本是4.6.2。当我去下载一个新的。NET 框架,它只列出了4.6.2作为最新的通过 MS,你可以下载。上面说。NET 4.7包含在 VS 2017中。我错过了什么?

56304 次浏览

You need to go to Visual Studio Installer and install an optional component ".NET Framework 4.7 Development Tools".

The .NET Framework 4.7 was released as part of Windows 10 Creators. For other versions of Windows, you have to install the .NET Framework 4.7.

Offline Installer of .NET Framework 4.7 Developer pack

So I could not find the .Net Framework 4.7.2 Developer tool even in Visual Studio Installer. However you can download & run them from here:

https://www.microsoft.com/net/download/visual-studio-sdks

"A picture is worth a thousand bytes (with adequate compression)" and all that jazz...

enter image description here

For anyone late to the party here; In Visual Studio 2019, I had this problem by using a .Net Core template to create my project.

https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-multi-targeting-overview?view=vs-2019

For non-.NET Framework project templates, for example .NET Core templates, the Framework drop-down list doesn't appear.

Make sure you pick a .Net Framework template when creating a project/solution :)