Hello, NTDEV!
I want to automate HLK tests as they take me so much time.
I found C# and PowerShell examples here https://docs.microsoft.com/en-us/windows-hardware/test/hlk/developer/hello-world, but when I launched it in my project I got so many errors:
C#
using Microsoft.Windows.Kits.Hardware.ObjectModel;
using Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection;
using Microsoft.Windows.Kits.Hardware.ObjectModel.Submission;
error CS0234: The type or namespace name ‘Windows’ does not exist in the namespace ‘Microsoft’
PowerShell
$ObjectModel = [Reflection.Assembly]::LoadFrom($env:WTTSTDIO + “Microsoft.Windows.Kits.Hardware.objectmodel.dll”)
$ObjectModel = [Reflection.Assembly]::LoadFrom($env:WTTSTDIO + “Microsoft.Windows.Kits.Hardware.objectmodel.dbconnection.dll”)
$ObjectModel = [Reflection.Assembly]::LoadFrom($env:WTTSTDIO + “Microsoft.Windows.Kits.Hardware.objectmodel.submission.dll”)
Could not load file or assembly or one of its dependencies. The specified file cannot be found.
What’s wrong?