MSBuildToolsPath is not specified for the ToolsVersion “12.0“

MSBuildToolsPath is not specified for the ToolsVersion "12.0" defined at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0", or the value specified evaluates to the empty string.

安装Delphi 新版本软件时出现的问题,解决办法是删残留的14.0文件夹,并重启软件就可以了。

解决方法:

  1. win+r 输入regedit打开注册表,找到报错的路径"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0",删除14.0文件

  1. 本人按照方法一没有找到14.0文件,所以采用方法2

windows目录下文件夹SysWOW64

找到文件 regedit 和regedt32

分别点开后删除

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\14.0

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersion\14.0

(如果打开后没有找到,可以尝试管理员权限打开)

扫描二维码关注公众号,回复: 15262852 查看本文章

猜你喜欢

转载自blog.csdn.net/qq_41661878/article/details/129146972
今日推荐