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:
,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