windows10 驱动程序部署错误的解决方法
vs2019部署驱动程序时会报错:
An error occurred while deploying files to the target machine for test "Driver Removal": Could not find a part of the path 'C:\VS\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT'..Workaround
vs误找了错误的旧版工具集,
解决方法
1:管理员运行 Developer Command Prompt for VS 2019
2:执行命令 cd /d %VCToolsRedistDir%\debug_nonredist
3:执行命令 MKLINK /J x64\Microsoft.VC141.DebugCRT x64\Microsoft.VC142.DebugCRT
OK
下面给贴出微软提供的解决方法:
Error seen when Provisioning a computer for driver deployment and testing when using WDK 1903 and Visual Studio 16.1 +
The Visual Studio team addressed a reported issue that resulted in the MSVC debug tool location changing. WDK has a dependency on this folder structure and with the Visual Studio fix the folder structure that WDK is looking for is no longer present. When provisioning a computer for driver deployment and testing on a system which has WDK and Visual Studio 16.1 +, provisioning fails. When reviewing the logs, the following error message is present:
An error occurred while deploying files to the target machine for test "Driver Removal": Could not find a part of the path 'C:\VS\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT'..Workaround:
As Administrator, run Developer Command Prompt for VS 2019
Run the following commands in the VS Developer Command Prompt:
- cd /d %VCToolsRedistDir%\debug_nonredist
- MKLINK /J x86\Microsoft.VC141.DebugCRT x86\Microsoft.VC142.DebugCRT
- MKLINK /J x64\Microsoft.VC141.DebugCRT x64\Microsoft.VC142.DebugCRT
For other known issues with the WDK please visit:
https://social.msdn.microsoft.com/Forums/en-US/31838202-0086-41b4-b424-72e7c121da4a/hardware-development-kits-for-windows-10-version-1903?forum=wdk
,Error seen when Provisioning a computer for driver deployment and testing when using WDK 1903 and Visual Studio 16.1 +
The Visual Studio team addressed a reported issue that resulted in the MSVC debug tool location changing. WDK has a dependency on this folder structure and with the Visual Studio fix the folder structure that WDK is looking for is no longer present. When provisioning a computer for driver deployment and testing on a system which has WDK and Visual Studio 16.1 +, provisioning fails. When reviewing the logs, the following error message is present:
An error occurred while deploying files to the target machine for test "Driver Removal": Could not find a part of the path 'C:\VS\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT'..Workaround:
As Administrator, run Developer Command Prompt for VS 2019
Run the following commands in the VS Developer Command Prompt:
- cd /d %VCToolsRedistDir%\debug_nonredist
- MKLINK /J x86\Microsoft.VC141.DebugCRT x86\Microsoft.VC142.DebugCRT
- MKLINK /J x64\Microsoft.VC141.DebugCRT x64\Microsoft.VC142.DebugCRT
For other WDK know issues please visit
https://social.msdn.microsoft.com/Forums/en-US/31838202-0086-41b4-b424-72e7c121da4a/hardware-development-kits-for-windows-10-version-1903?forum=wdk
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
