From a55c13b93902c74f1eb8df622d56695a8c98e872 Mon Sep 17 00:00:00 2001 From: Qiutong Shen Date: Fri, 10 Apr 2026 18:42:52 +0800 Subject: [PATCH 1/2] Fix documentation-sample drift in Windows ML docs - run-genai-onnx-models: Add code samples section linking to GenAI sample - get-started: Add note that ORT APIs are bundled in WindowsAppSDK.ML package Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- docs/new-windows-ml/get-started.md | 3 +++ docs/new-windows-ml/run-genai-onnx-models.md | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/new-windows-ml/get-started.md b/docs/new-windows-ml/get-started.md index d722e251..e76d0c4f 100644 --- a/docs/new-windows-ml/get-started.md +++ b/docs/new-windows-ml/get-started.md @@ -49,6 +49,9 @@ The easiest way to use Windows ML is to install the [`Microsoft.WindowsAppSDK.ML dotnet add package Microsoft.WindowsAppSDK.ML ``` +> [!NOTE] +> The ONNX Runtime APIs (`Microsoft.ML.OnnxRuntime` namespace) are included in the `Microsoft.WindowsAppSDK.ML` package. You do not need to install `Microsoft.ML.OnnxRuntime` separately. + ### [C++/WinRT](#tab/cppwinrt) Windows ML is included in [Windows App SDK 1.8.1 or greater](/windows/apps/windows-app-sdk/stable-channel). diff --git a/docs/new-windows-ml/run-genai-onnx-models.md b/docs/new-windows-ml/run-genai-onnx-models.md index 43f978d4..dff1929a 100644 --- a/docs/new-windows-ml/run-genai-onnx-models.md +++ b/docs/new-windows-ml/run-genai-onnx-models.md @@ -31,6 +31,10 @@ See the [ONNX Runtime GenAI docs](https://onnxruntime.ai/docs/genai/) for more d * [C# API reference](https://onnxruntime.ai/docs/genai/api/csharp.html) * [C++ API reference](https://onnxruntime.ai/docs/genai/api/cpp.html) +## Code samples + +For complete C# code examples using the GenAI API with Windows ML, see the [Windows ML GenAI samples](https://github.com/microsoft/WindowsAppSDK-Samples/tree/release/experimental/Samples/WindowsML) on GitHub. + ## See also * [Run ONNX models](./run-onnx-models.md) From 6ae9446a146f5ef37353ecfc83ac12da3d3bf728 Mon Sep 17 00:00:00 2001 From: Qiutong Shen Date: Wed, 29 Apr 2026 15:08:40 +0800 Subject: [PATCH 2/2] add samples for genAI --- docs/new-windows-ml/get-started.md | 3 --- docs/new-windows-ml/run-genai-onnx-models.md | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/new-windows-ml/get-started.md b/docs/new-windows-ml/get-started.md index e76d0c4f..d722e251 100644 --- a/docs/new-windows-ml/get-started.md +++ b/docs/new-windows-ml/get-started.md @@ -49,9 +49,6 @@ The easiest way to use Windows ML is to install the [`Microsoft.WindowsAppSDK.ML dotnet add package Microsoft.WindowsAppSDK.ML ``` -> [!NOTE] -> The ONNX Runtime APIs (`Microsoft.ML.OnnxRuntime` namespace) are included in the `Microsoft.WindowsAppSDK.ML` package. You do not need to install `Microsoft.ML.OnnxRuntime` separately. - ### [C++/WinRT](#tab/cppwinrt) Windows ML is included in [Windows App SDK 1.8.1 or greater](/windows/apps/windows-app-sdk/stable-channel). diff --git a/docs/new-windows-ml/run-genai-onnx-models.md b/docs/new-windows-ml/run-genai-onnx-models.md index dff1929a..4d154327 100644 --- a/docs/new-windows-ml/run-genai-onnx-models.md +++ b/docs/new-windows-ml/run-genai-onnx-models.md @@ -31,10 +31,6 @@ See the [ONNX Runtime GenAI docs](https://onnxruntime.ai/docs/genai/) for more d * [C# API reference](https://onnxruntime.ai/docs/genai/api/csharp.html) * [C++ API reference](https://onnxruntime.ai/docs/genai/api/cpp.html) -## Code samples - -For complete C# code examples using the GenAI API with Windows ML, see the [Windows ML GenAI samples](https://github.com/microsoft/WindowsAppSDK-Samples/tree/release/experimental/Samples/WindowsML) on GitHub. - ## See also * [Run ONNX models](./run-onnx-models.md) @@ -44,3 +40,4 @@ For complete C# code examples using the GenAI API with Windows ML, see the [Wind * [Register execution providers](./register-execution-providers.md) * [Select execution providers](./select-execution-providers.md) * [Distribute your app that uses Windows ML](./distributing-your-app.md) +* [Windows ML GenAI samples](https://github.com/microsoft/WindowsAppSDK-Samples/tree/release/experimental/Samples/WindowsML)