Share via

MSB4062: The "ValidateNTTargetVersion" task could not be loaded from the assembly E:\Program Files\Windows Kits\10\build\10.0.25272.0\bin\Microsoft.DriverKit.Build.Tasks.17.0.dll.

Anonymous
2023-04-28T02:10:06+00:00

show "Build Failed" message as follow:

C:\QcSensorHub\Root\WP\src\qcdk\Versions\latest\BuildEnv\QC_SetupBuildEnv.cmd & E:\BuildEnv\SetupBuildEnv.cmd &

\Program Files\Windows Kits\10\ & msbuild C:\QcSensorHub\Root\WP\src\sensors\sensors.wp63.sln /p:QCPlatform=8380

/p:platform=ARM64 /p:configuration=Release /p:BuildInParallel=false /fl1

/flp1:verbosity=diagnostic;logfile=C:\QcSensorHub\Root\WP\src\sensors\build.log /fl2

/flp2:warningsonly;logfile=C:\QcSensorHub\Root\WP\src\sensors\build.wrn /fl3

/flp3:errorsonly;logfile=C:\QcSensorHub\Root\WP\src\sensors\build.err

/p:_QCDK_ROOT_PATH=C:\QcSensorHub\Root\WP\src\qcdk\Versions\latest & exit -PassThru

VERBOSE: Error code for the msbuild: 1

VERBOSE: <FAIL>: MSBuild Failed!! Please check the C:\QcSensorHub\Root\WP\src\sensors\build.err for more information

VERBOSE: Dismounting C:\QcSensorHub\WindowsKits\WDK\25272.25272\EWDK_rs_prerelease_25272_221216-1237.iso

VERBOSE: DisMount-DiskImage -ImagePath

C:\QcSensorHub\WindowsKits\WDK\25272.25272\EWDK_rs_prerelease_25272_221216-1237.iso

[FAIL]: Build Failed!! Please check the C:\QcSensorHub\Root\WP\src\sensors\build.err for more information

E:\Program Files\Windows Kits\10\build\10.0.25272.0\WindowsDriver.common.targets(314,5): error MSB4062: The "ValidateNTTargetVersion" task could not be loaded from the assembly E:\Program Files\Windows Kits\10\build\10.0.25272.0\bin\Microsoft.DriverKit.Build.Tasks.17.0.dll. Could not load file or assembly 'Microsoft.DriverKit.Build.Tasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\QcSensorHub\Root\WP\src\sensors\qcSensors\qcSensors.wp63.vcxproj]

Exiting script

[Environment]

VS2022 committy

WDK: EWDK_rs_prerelease_25272_221216-1237

Windows for home | Windows 11 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. John DeV 162K Reputation points Independent Advisor
    2023-04-28T23:03:22+00:00

    Hello Yi,

    You're most welcome. I'm glad to help.

    Stay safe and have a great day.

    Kind regards,

    John DeV

    Independent Advisor

    0 comments No comments
  2. Anonymous
    2023-04-28T03:03:04+00:00

    OK, thx

    0 comments No comments
  3. John DeV 162K Reputation points Independent Advisor
    2023-04-28T02:42:08+00:00

    Hello Yi,

    Good day! I'm John DeV a Windows user like you and I'll be happy to assist you today.

    I want to apologize that this is just a consumer forum for home users. Due to the scope of your question, it is best to ask Visual Studio related questions on Microsoft Site Q&A which is a technical community platform where most of the members were IT professionals that would greatly help you with the issue.

    Microsoft Site Q&A

    https://learn.microsoft.com/en-us/answers/tags/...

    Kind regards,

    John DeV

    Independent Advisor

    0 comments No comments