问题描述
我正在尝试运行静态驱动程序验证程序以获取"静态工具徽标测试"。传递,但SDV失败并显示消息
I am trying to run the static driver verifier to get the "Static Tools Logo Test" to pass, but the SDV fails with the message
"SDV在构建驱动程序时遇到错误"。 警告框包含文字
"SDV encountered errors when building the driver". The alert box contains the text
"
EXEC:构建警告:C:\Program Files(x86)\ MSBuild \ Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5):错误MSB3073:命令"cscript"C:\ Users \Kurt \Documents \ Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ driversVersion.vbs"
reset [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\ Users\Kurt \\ \\Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
$
EXEC:构建警告:C:\Program Files(x86)\ MSBuild \ Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5):错误MSB3073 :: VCEnd"退出代码1. [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
[C:\ Users \ Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
EXEC:构建警告:C:\Program Files(x86 )\ MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5):错误MSB3073:命令"cscript"C:\ Users \Kurt \ Documents\Visual Studio 2012 \Projects\pdiFilter \ hyperv \ pxdFilter \ driversVersion.vbs"
reset [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\ Users\Kurt \\ \\Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
$
EXEC:构建警告:C:\Program Files(x86)\ MSBuild \ Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5):错误MSB3073 :: VCEnd"退出代码1. [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
[C:\ Users \ Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
执行:构建警告:C:\Program Files(x86)\ MSBuild\Microsoft.Cpp \v4.0 \V110 \ Microsoft.CppCommon.targets(124,5):错误MSB3073:命令" cscript" C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \ hyperv \ pxdFilter \ driversVersion.vbs"
reset [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\ Users\Kurt \\ \\Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
执行:构建警告:C:\Program Files(x86)\ MSBuild\Microsoft.Cpp \v4.0 \V110 \ Microsoft.CppCommon.targets(124,5):错误MSB3073 :: VCEnd"退出代码1. [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
[C:\ Users \ Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
执行:构建警告:C:\Program Files(x86)\ MSBuild\Microsoft.Cpp \v4.0 \V110 \ Microsoft.CppCommon.targets(124,5):错误MSB3073:命令" cscript" C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \ hyperv \ pxdFilter \ driversVersion.vbs"
reset [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\ Users\Kurt \\ \\Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
执行:构建警告:C:\Program Files(x86)\ MSBuild\Microsoft.Cpp \v4.0 \V110 \ Microsoft.CppCommon.targets(124,5):错误MSB3073 :: VCEnd"退出代码1. [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
[C:\ Users \ Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj]
C:\ Users \Kurt \Documents \ Visual Studio 2012 \Projects \pdiFilter \ hyperv \ pxdFilter> cd / d" C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects \ pdiFilter \ hyperv \ pxdFilter"   &安培;&安培; msbuild" pxdFilter.vcxproj" / t:sdv / p:inputs =" / devenv
/ check" / p:configuration =" Win8 Release" / P:平台= QUOT; 64"
Microsoft(R)Build Engine版本4.0.30319.18408
[Microsoft .NET Framework,版本4.0.30319.18408]
版权所有(C )微软公司。保留所有权利。
Build build 1/3/2014 10:14:37 AM。
项目"C:\ Users \Kurt \Documents \ Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj"节点1(sdv target(s))。
Sdv:
staticdv.exe / devenv / check
-------------------------------------------------- -------------------
Microsoft(R)Windows(R)Static Driver Verifier版本3.0.483.0
版权所有(C)Microsoft Corporation。 保留所有权利。
-------------------------------------------------- -------------------
SDV正在建设< Win8 Release | x64>
对"构建"的调用失败。
b
SDV退出代码:3
构建驱动程序时SDV遇到错误。
C:\Program Files(x86)\ Windows Wits\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\错误MSB3073:命令"staticdv.exe / devenv / check"退出代码3. [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter \ pxdFilter.vcxproj]
完成建筑项目"C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj" (sdv target(s)) - FAILED。
Build FAILED。
" C:\ Users\Kurt \Documents\Visual Studio 2012 \ Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target)(1) - >
$
(Sdv目标) - >
" C:\ Users \Kurt \Documents \ Visual Studio 2012 \Projects\pdiFilter \hyperv \ pxdFilter \ pxdFilter.vcxproj" (sdv target)(1) - >
$
(Sdv目标) - >
C:\Program Files(x86)\ Windows Wits \\\ 08.0 \ build \ WindowsDriver8.0.Sdv.targets(66,9):错误MSB3073:命令"staticdv.exe / devenv / check"退出代码3. [C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
&NBSP; 4警告
&NBSP; 1错误
经过时间00:00:02.25
C:\ Users \Kurt \Documents\Visual Studio 2012 \Projects\pdiFilter \ hyperv \ pxdFilter>退出0"
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: The command "cscript "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\driverVersion.vbs" reset [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
EXEC : Build warning : C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(124,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj] [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter>cd /d "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter" && msbuild "pxdFilter.vcxproj" /t:sdv /p:inputs="/devenv /check" /p:configuration="Win8 Release" /p:platform="x64"
Microsoft (R) Build Engine version 4.0.30319.18408
[Microsoft .NET Framework, version 4.0.30319.18408]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/3/2014 10:14:37 AM.
Project "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" on node 1 (sdv target(s)).
Sdv:
staticdv.exe /devenv /check
---------------------------------------------------------------------
Microsoft (R) Windows (R) Static Driver Verifier Version 3.0.483.0
Copyright (C) Microsoft Corporation. All rights reserved.
---------------------------------------------------------------------
SDV is building for <Win8 Release|x64>
The call to "Build" failed.
SDV exit code: 3
SDV encountered errors when building the driver.
C:\Program Files (x86)\Windows Kits\8.0\build\WindowsDriver8.0.Sdv.targets(66,9): error MSB3073: The command "staticdv.exe /devenv /check" exited with code 3. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
Done Building Project "C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target(s)) -- FAILED.
Build FAILED.
"C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target) (1) ->
(Sdv target) ->
"C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj" (sdv target) (1) ->
(Sdv target) ->
C:\Program Files (x86)\Windows Kits\8.0\build\WindowsDriver8.0.Sdv.targets(66,9): error MSB3073: The command "staticdv.exe /devenv /check" exited with code 3. [C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter\pxdFilter.vcxproj]
4 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.25
C:\Users\Kurt\Documents\Visual Studio 2012\Projects\pdiFilter\hyperv\pxdFilter>exit 0"
但是这个或sdv日志文件似乎都没有包含原因。
but neither this or the sdv log files seem to contain the reason why.
如果我使用扫描选项手动运行staticdv,它将失败,错误代码为5而不是3,但不提供更多。 有没有办法让这个更详细?
If I manually run staticdv with the scan option it fails with error code 5 instead of 3, but doesn't offer much more. Is there a way to make this more verbose?
推荐答案
问题1:sdv似乎对我项目的路径感到困惑找不到driverVersion.vbs脚本。 将其复制到预期目录并修改它以调整新路径,解决问题的一半。
Problem 1: The sdv seemed confused by the path to my project and couldn't find the driverVersion.vbs script. Copying that to the expected directory and modifying it to adjust for the new path fixed half the problems.
问题2: rc.exe实用程序显然不喜欢路径中的空格,因此将Visual Studio项目根目录更改为没有空格最终使其工作。
Problem 2: The rc.exe utility apparently doesn't like spaces in paths, so changing the Visual Studio project root to not have spaces finally got this working.
这篇关于静态驱动程序验证程序无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!