OK I found a solution finally! Visual studio 2015 forgets one of its registry keys after you uninstall it. I solved it by removing the "14" (2015) version folder from here: HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\MSBuild\\ToolsVersions and it worked fine!
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.