Windows AI Samples
An app that demonstrates how to use the Windows AI apis with WinUI.
Releases
Stable features can be found in the main branch.
Experimental features can be found in the release/experimental branch
Prerequisites
- See System requirements for Windows app development.
- Make sure that your development environment is set up correctly—see Install tools for developing apps for Windows 10 and Windows 11.
- Use a Copilot+ PC
- Detailed instructions : Get started building an app with Windows AI APIs
To get the latest updates to Windows and the development tools, and to help shape their development, join the Windows Insider Program.
Building and running the sample
- Open the solution file (
.sln) in Visual Studio. - Ensure your build configuration is set to
arm64. - From Visual Studio, either Start Without Debugging (Ctrl+F5) or Start Debugging (F5).
Contributing to this project
- Refer to the contributing guide
Special Considerations for Unpackaged and Self-Contained modes with Windows AI apis
- Unpackaged app configuration is no longer supported. Every app using Windows AI apis must have a package identity which can be granted to apps with an external location to achieve that with unpackaged binaries.
- Self-contained mode is fully supported by Windows AI apis as well.
- The following command demonstrates how to run the app as an ARM64 application in packaged self-contained mode (for both WinAppSDK and .NET):
dotnet run -p:Configuration=Debug -p:Platform=ARM64 -p:WindowsAppSDKSelfContained=true -p:SelfContained=true.