From your screenshot we can see, that UiPath.UiAutomation.Activities is NOT referenced:
So just use Manage Packages and add UiPath.UiAutomation.Activities to the project dependencies