not recognized microsoft.windows.vision in winui blanck app

lsb safari 0 Reputation points
2025-06-06T19:55:09.3633333+00:00

❓ Question (Rephrased in English for Microsoft Support or Forums):

I'm developing a WinUI Blank App using the following packages:

`<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.3.1" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250513003" />
`

I want to use Microsoft.Windows.Vision, but the namespace is not recognized in my project. There is no available assembly reference, metadata, or documentation for this API. ❓ Is Microsoft.Windows.Vision publicly available for WinUI apps, or is it internal/private to apps like Microsoft Photos?

Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2025-06-07T03:50:33.9033333+00:00

    You need to use some experimental versions like 1.8.250410001-experimental1

    as noticed at https://learn.microsoft.com/en-us/windows/ai/apis/text-recognition

    and target framework as explained at https://github.com/microsoft/WindowsAppSDK/issues/5127#issuecomment-2648581683


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.