Skip to content

Commit 772d647

Browse files
Add 'AI in your app' pillar and Windows platform pitch to AI get-started cluster
- ai-for-windows-developers.md: add 'Build apps with AI built in' section covering Foundry Local, Phi Silica, and Windows AI APIs; add 'Why Windows?' pitch in intro; clarify both pillars (AI-assisted dev + AI in apps) - ai-build.md: add optional Part 6 showing Foundry Local integration — adds on-device note summarization to the tutorial app; links to Phi Silica as upgrade path for Copilot+ PCs - agentic-tools.md: add Related content link to 'AI in apps' section Co-authored-by: Copilot <[email protected]>
1 parent 10753ae commit 772d647

3 files changed

Lines changed: 107 additions & 5 deletions

File tree

hub/apps/dev-tools/agentic-tools.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ For a complete walkthrough — including IDE setup, agent mode, MCP server confi
7474

7575
- [Set up GitHub Copilot for Windows development](../get-started/ai-setup.md)
7676
- [AI-assisted Windows development](../get-started/ai-for-windows-developers.md)
77+
- [Build apps with AI built in](../get-started/ai-for-windows-developers.md#build-apps-with-ai-built-in) — Foundry Local, Phi Silica, and Windows AI APIs
7778
- [GitHub Copilot in Visual Studio](../how-tos/github-copilot-winui-vs.md)

hub/apps/get-started/ai-build.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,59 @@ You've built a complete WinUI 3 notes app using:
128128
- **Learn MCP Server** to look up Windows App SDK notification APIs
129129
- **winapp CLI** for package identity and MSIX packaging
130130

131-
## Next steps
131+
---
132+
133+
## Optional: Add on-device AI to your app
134+
135+
The notes app is fully functional — but you can take it further by adding an AI feature that runs entirely on the user's device. [Foundry Local](../../../ai/foundry-local/overview.md) makes this straightforward: it runs a language model locally and exposes an OpenAI-compatible API.
136+
137+
### Install Foundry Local and download a model
138+
139+
```bash
140+
winget install Microsoft.AIFoundry.Local
141+
foundry model run phi-4-mini
142+
```
143+
144+
Once the model starts, it listens at `http://localhost:5272/openai/v1`.
145+
146+
### Add the NuGet package
147+
148+
```bash
149+
dotnet add package Azure.AI.OpenAI
150+
```
151+
152+
### Add a "Summarize" button to the Notes page
153+
154+
Ask Copilot:
155+
156+
> *"Add a 'Summarize' button to the Notes page. When clicked, it should send the selected note's content to a local AI endpoint at http://localhost:5272/openai/v1 using the Azure.AI.OpenAI package, and display the summary in a ContentDialog. Model name is phi-4-mini."*
157+
158+
Copilot generates the `AzureOpenAIClient` call and dialog — the OpenAI-compatible API means the code looks identical to a cloud API call, just pointed at localhost:
159+
160+
```csharp
161+
var client = new AzureOpenAIClient(
162+
new Uri("http://localhost:5272/openai/v1"),
163+
new ApiKeyCredential("foundry-local"));
164+
165+
var completion = await client.GetChatClient("phi-4-mini")
166+
.CompleteChatAsync($"Summarize this note in 2 sentences: {note.Content}");
167+
```
168+
169+
### What the user sees
170+
171+
No internet connection required. No API key. The model runs on their PC — fast, private, and free.
172+
173+
> [!TIP]
174+
> For apps targeting Copilot+ PCs, you can swap Foundry Local for [Phi Silica](../../../ai/apis/phi-silica.md) to use the NPU directly for even faster inference. The API surface is different (Windows AI APIs rather than OpenAI-compatible), but Copilot can help you make the switch.
175+
176+
---
132177

133178
> [!div class="nextstepaction"]
134179
> [Modernize or port a Windows app with Copilot](../windows-app-sdk/migrate-to-windows-app-sdk/ai-modernize.md)
135180
136181
- [Agentic AI tools for Windows development](../dev-tools/agentic-tools.md)
182+
- [Foundry Local overview](../../../ai/foundry-local/overview.md) — run any model locally on Windows
183+
- [Phi Silica](../../../ai/apis/phi-silica.md) — NPU-accelerated inference on Copilot+ PCs
184+
- [Windows AI APIs overview](/windows/ai/)
137185
- [Windows App Development CLI (winapp CLI)](../dev-tools/winapp-cli/index.md)
138186
- [Windows App SDK documentation](../windows-app-sdk/index.md)

hub/apps/get-started/ai-for-windows-developers.md

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
11
---
22
title: AI-assisted Windows development
3-
description: Discover how GitHub Copilot, MCP servers, and Windows-specific AI tools make it faster and easier to build and modernize Windows apps.
3+
description: Discover how to build better Windows apps faster — using AI coding tools and shipping apps with AI built in, from Foundry Local to Phi Silica and Windows AI APIs.
44
ms.topic: overview
55
ms.date: 03/10/2026
66
ms.author: jken
77
author: GrantMeStrength
8-
keywords: windows, github copilot, ai development, winui, copilot, mcp server
8+
keywords: windows, github copilot, ai development, winui, copilot, mcp server, foundry local, phi silica, windows ai
99
ms.localizationpriority: medium
1010
---
1111

1212
# AI-assisted Windows development
1313

14-
GitHub Copilot and a growing set of Windows-specific AI tools have changed what it means to build for Windows. Whether you're starting a brand-new WinUI app, integrating Windows AI APIs, or migrating a legacy UWP project, AI can handle the scaffolding, suggest the right APIs, explain unfamiliar patterns, and keep your code on the right track — all without leaving your IDE.
14+
Windows is where AI development is happening — both for developers writing apps with AI assistance and for apps that ship with AI built in.
1515

16-
This article introduces the tools and what they make possible. When you're ready, follow the links to set up your environment and start building.
16+
This article covers both: the AI coding tools that help you build Windows apps faster, and the Windows AI stack that lets you put intelligence directly into your app. When you're ready, follow the links to set up your environment and start building.
17+
18+
> [!TIP]
19+
> **New to Windows development?** Windows has the deepest local AI stack of any platform: [Foundry Local](../../../ai/foundry-local/overview.md) runs state-of-the-art models on any hardware, [Phi Silica](../../../ai/apis/phi-silica.md) uses the NPU on Copilot+ PCs for near-instant inference, and the full [Windows AI API surface](/windows/ai/) is available to any packaged app. If you're coming from Linux or macOS, Windows Subsystem for Linux (WSL) and the GitHub Copilot CLI Terminal mean you don't have to give up your existing workflow to get started.
20+
21+
## Two ways AI changes Windows development
22+
23+
There are two distinct—and complementary—things AI does for Windows developers:
24+
25+
| | What it is | Example |
26+
|---|---|---|
27+
| **AI-assisted development** | Tools that help you *write* your app faster and more accurately | GitHub Copilot generates your WinUI scaffolding; the Learn MCP Server looks up the right API |
28+
| **AI in your app** | AI features you *ship* inside your app for end users | Note summarization via Foundry Local; real-time transcription via Live Captions API; image description via Windows Vision Skills |
29+
30+
Both are first-class scenarios on Windows. The rest of this article covers the tools for each.
31+
32+
---
1733

1834
## What AI tools are available for Windows developers?
1935

@@ -73,6 +89,41 @@ Electron, Flutter, React Native, and Rust developers can use Copilot to adapt th
7389

7490
---
7591

92+
## Build apps with AI built in
93+
94+
The Windows AI stack lets you ship AI features directly in your app — with hardware-accelerated inference, privacy-preserving on-device models, and no cloud dependency required.
95+
96+
### Foundry Local
97+
98+
[Foundry Local](../../../ai/foundry-local/overview.md) runs large language models locally on any Windows PC. It exposes an OpenAI-compatible REST API, so you can use your existing AI code against local models with no rewrite. Foundry Local is the recommended starting point for adding AI to a Windows app — it works on any hardware, requires no Azure subscription, and keeps user data on-device.
99+
100+
```bash
101+
winget install Microsoft.AIFoundry.Local
102+
foundry model run phi-4-mini
103+
```
104+
105+
After the model starts, call it from your app using the OpenAI-compatible endpoint at `http://localhost:5272/openai/v1`.
106+
107+
### Phi Silica
108+
109+
[Phi Silica](../../../ai/apis/phi-silica.md) is a compact, highly capable model built into Windows 11 on Copilot+ PCs. It runs entirely on the NPU — no GPU, no cloud, near-instant inference. If your app targets Copilot+ PCs, Phi Silica is the fastest local AI option available.
110+
111+
> [!NOTE]
112+
> Phi Silica requires a Copilot+ PC (with NPU, 40+ TOPS). For apps targeting all Windows hardware, use Foundry Local with a fallback to cloud APIs.
113+
114+
### Windows AI APIs
115+
116+
Beyond language models, Windows exposes a rich set of AI-powered APIs that any packaged app can use:
117+
118+
- **Text recognition**[Windows.Media.Ocr](/uwp/api/windows.media.ocr) for on-device OCR
119+
- **Live Captions API** — real-time, on-device speech-to-text
120+
- **Image analysis** — vision features via Windows Vision Skills
121+
- **LoRA fine-tuning** — adapt Phi Silica to your domain with [LoRA support](/windows/ai/apis/lora)
122+
123+
All of these run on-device, require no cloud subscription, and become available to your app once you have package identity (which [winapp CLI](../dev-tools/winapp-cli/index.md) can add to any framework).
124+
125+
---
126+
76127
## Next steps
77128

78129
> [!div class="nextstepaction"]
@@ -81,5 +132,7 @@ Electron, Flutter, React Native, and Rust developers can use Copilot to adapt th
81132
Or jump straight to:
82133

83134
- [Tutorial: Build a Windows app with GitHub Copilot](ai-build.md)
135+
- [Tutorial: Add on-device AI to a Windows app](../../../ai/foundry-local/tutorial-windows-app.md)
84136
- [Modernize or port a Windows app with Copilot](../windows-app-sdk/migrate-to-windows-app-sdk/ai-modernize.md)
85137
- [Agentic AI tools for Windows development](../dev-tools/agentic-tools.md)
138+
- [Windows AI APIs overview](/windows/ai/)

0 commit comments

Comments
 (0)