¡Cómo usar UIAutomationClient.dll y UIAutomationTypes.dll en el proyecto .NET 5.0 ya que no hay un paquete nuget disponible!
Estoy tratando de convertir un proyecto de .NET Framework 4.8 a .NET 5.0
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFrameworks>net48;net5.0-windows</TargetFrameworks> <UseWindowsForms>true</UseWindowsForms> <LangVersion>9.0</LangVersion> </PropertyGroup> </Project>Este .csproj es suficiente para usar System.Windows.Automation (UIAutomation) en net5
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net5.0-windows</TargetFramework> </PropertyGroup> <ItemGroup> <FrameworkReference Include="Microsoft.WindowsDesktop.App.WPF"/> </ItemGroup> </Project>