简体   繁体   中英

Visual Studio 2017 project is targeting .NET Framework version 4.7

Just installed vs 2017 and trying to load a project. I am running windows 10 (which has .NET 4.7) but I keep getting this error. I also can't install using the vs installer as the component isn't there. Anyone had this issue yet?

在此处输入图片说明

Try installing the targeting pack directly from the command line

vs_installer.exe modify --installPath "D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional" --Add Microsoft.Net.ComponentGroup.4.7.DeveloperTools --focusedUi

Or just download the targeting pack and install it manually.

Also I think you need to update your windows to get it built in. You are running version 1511, .NET 4.7 gets installed with the version 1703 update (aka "Creators Update") .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM