我试图在我的Windows 10(x64)笔记本电脑上安装Openalpr,按照本教程Openalpr for Windows,但是当我在步骤构建针对x64定位工具链v120的发布版本时,我得到在Windows PowerShell中以下错误:模具:PlatformToolset v120未安装
Die : PlatformToolset v120 is not installed.
At C:\Users\shama_000\Google Drive\Projects\Git Projects\openalpr\windows\build.ps1:230 char:9
+ Die "PlatformToolset $PlatformToolset is not installed."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Die
我打开该文件,用记事本+ +搜索的问题,它说,这:
if ($VXXCommonTools -eq $null -or (-not (Test-Path($VXXCommonTools)))) {
Die "PlatformToolset $PlatformToolset is not installed."}
但在BEG代码的一局,在param
节,我发现这一点:
[ValidateSet("v100", "v110", "v120", "v140")]
所以它应该PlatformToolset任何版本的(或至少这是我的逻辑)。我不知道我有哪个版本的Toolset,但我一直在网上搜索这个错误,我只找到关于Visual Studio的帖子,比如这个The builds tools for v120 (Platform Toolset = 'v120') cannot be found,但这个问题的“解决方案”是安装最新版本的Visual Studio。现在我已经安装了Visual Studio 2015所以,对于这个问题的答案,这应该已经工作。