首页 > 解决方案 > 在 VS 2019 中部署驱动程序失败

问题描述

尝试使用 KMDF 进行一些试验,但 echo 驱动程序无法部署:

A[13:22:28:862]: An error occured while deploying files to the target machine for test "Driver Preparation": Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT'..

为什么它会尝试查找 Microsoft.VC141.DebugCRT。我安装了 Microsoft.VC142.DebugCRT 和较新的工具集以及 10.0.18362.0 SDK。

我还安装了 VS 2017 工具集,现在出现同样的错误:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT 缺失。

但它应该查看 ...\14.16.27012.. 。

标签: visual-studiowinapikmdf

解决方案


我一直遇到同样的错误。我试过卸载/重新安装也试过 2017 年。我卸载了所有东西并重新安装了所有东西,但没有运气。我什至尝试安装VC141。

我真的来到你的帖子寻找答案,但我一时兴起打开安装程序,修改它以安装 VC141 的东西,将文件放入Community\VC\Redist\MSVC\14.16.27012\debug_nonredist\x64

VS 仍然抱怨所以我只是将 * 从 Community\VC\Redist\MSVC\14.16.27012\debug_nonredist\x64 复制到 Community\VC\Redist\MSVC\14.21.27702\debug_nonredist\x64 和“事情似乎工作”。这不是一个很好的答案——但也许它已经足够好了?


推荐阅读