79460937

Date: 2025-02-23 08:59:05
Score: 2.5
Natty:
Report link

I added the UIAutomationClient dll but it was still couldn't find the System.Windows.Automation in my .net8 console application.

Google Gemini suggested me to add <TargetFramework>net8.0-windows</TargetFramework> into the <PropertyGroup> in the csproj file of my project. Then the visual studio could find the library succesfully.

Edit: Also I needed to add <UseWPF>true</UseWPF> into <PropertyGroup> thanks to the @Zhijian Jim Luo's suggestion.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • User mentioned (1): @Zhijian
  • Low reputation (1):
Posted by: mizi