app-attach
1 TopicError configured app-attach
I am working through this guide, and getting a PowerShell error when running this line: $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | Where { $_.ToString() -eq 'System.Threading.Tasks.Task`1[TResult]AsTask[TResult,TProgress](Windows.Foundation.IAsyncOperationWithProgress`2[TResult,TProgress])'})[0] It's just a generic null array error, but I am not sure why I am getting it or how this Windows class works. Can anyone help? Cannot index into a null array. At line:1 char:1 + $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | Whe ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArraySolved2.9KViews0likes5Comments