-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Hi,
There is an run time error when use the wrapper, but the command on the PowerShell works fine.
How to fix this problem?
var t = wdp.RunCommandWithoutOutputAsync(
@"erase C:\Data\Users\folder1\ -force -recurse",
"false", "5").Result;
System.AggregateException: 'One or more errors occurred. ()'
System.AggregateException
HResult=0x80131500
Message=One or more errors occurred. ()
Source=System.Private.CoreLib
StackTrace:
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result()
at MyTestWDPHeadless.StartupTask.testWDP() in C:\files\temp\WindowsDevicePortalWrapper-master\WindowsDevicePortalWrapper\MyTestWDPHeadless\StartupTask.cs:line 54
at MyTestWDPHeadless.StartupTask.Run(IBackgroundTaskInstance taskInstance) in C:\files\temp\WindowsDevicePortalWrapper-master\WindowsDevicePortalWrapper\MyTestWDPHeadless\StartupTask.cs:line 27