UIAutomationClient.dll not working with UWP (build error)

0

I'm trying to make an app that keeps track of which programs I open. After some searching I found that UIAutomation does exactly that. But after I add a reference to UIAutomationClient [4.0.0.0] via the Object Browser to my project I get these three errors when I try to build the app:

Severity Code Description Project File Line Suppression State Error PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry. Productivity Checker C:\Users\NAME\source\repos\Productivity Checker\Productivity Checker\GENERATEPROJECTPRIFILE

Severity Code Description Project File Line Suppression State Error PRI277: 0xdef00532 - Conflicting values for resource 'ExceptionStringTable/HwndMustBeNonNULL' Productivity Checker C:\Users\NAME\source\repos\Productivity Checker\Productivity Checker\GENERATEPROJECTPRIFILE

Severity Code Description Project File Line Suppression State Error Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad*****.' Productivity Checker C:\Users\NAME\source\repos\Productivity Checker\Productivity Checker\Productivity Checker.csproj

My project is a blank app with nothing else added. I don't get these errors before I add the dll.

I have no idea what these mean or how to fix them, any help is appreciated.

uwp
dllimport
asked on Stack Overflow Jul 25, 2020 by Gruhlum

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0