Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions Samples/WindowsML/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
</PropertyGroup>
<ItemGroup>
<!-- WindowsAppSDK packages -->
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI.WinML" Version="0.10.0" />
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.8.260101001" />
<PackageVersion Include="Microsoft.WindowsAppSDK.AI" Version="1.8.44" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Base" Version="1.8.251216001" />
<PackageVersion Include="Microsoft.WindowsAppSDK.DWrite" Version="1.8.25122902" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Foundation" Version="1.8.251220000" />
<PackageVersion Include="Microsoft.WindowsAppSDK.InteractiveExperiences" Version="1.8.251217001" />
<PackageVersion Include="Microsoft.WindowsAppSDK.ML" Version="1.8.2119" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Runtime" Version="1.8.260101001" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Widgets" Version="1.8.251231004" />
<PackageVersion Include="Microsoft.WindowsAppSDK.WinUI" Version="1.8.251222000" />
<PackageVersion Include="Microsoft.ML.OnnxRuntimeGenAI.WinML" Version="0.14.0" />
<PackageVersion Include="Microsoft.Windows.AI.MachineLearning" Version="2.1.1" />
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="2.1.3" />
<PackageVersion Include="Microsoft.WindowsAppSDK.AI" Version="2.1.10" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Base" Version="2.0.4" />
<PackageVersion Include="Microsoft.WindowsAppSDK.DWrite" Version="2.1.0" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Foundation" Version="2.0.21" />
<PackageVersion Include="Microsoft.WindowsAppSDK.InteractiveExperiences" Version="2.0.13" />
<PackageVersion Include="Microsoft.WindowsAppSDK.ML" Version="2.1.1" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Runtime" Version="2.1.3" />
<PackageVersion Include="Microsoft.WindowsAppSDK.Widgets" Version="2.0.5" />
<PackageVersion Include="Microsoft.WindowsAppSDK.WinUI" Version="2.1.0" />
<!-- Other dependencies -->
<PackageVersion Include="Microsoft.Web.WebView2" Version="1.0.3179.45" />
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.4654" />
Expand Down
6 changes: 4 additions & 2 deletions Samples/WindowsML/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ Windows ML enables high-performance, reliable inferencing of machine learning mo
## Prerequisites

- **Windows 11 PC** running version 24H2 (build 26100) or greater
- **Visual Studio 2022** with C++ and .NET workloads
- **Windows App SDK 1.8.1** or later
- **Visual Studio 2022** with the following workloads:
- **Desktop development with C++** (required for C++ samples)
- **.NET desktop development** (required for C# samples)
- **Windows App SDK 2.1.3** or later
- **Python 3.10-3.13** for Python samples on x64 and ARM64 devices

## Sample Categories
Expand Down
15 changes: 7 additions & 8 deletions Samples/WindowsML/cmake/WinMLEpCatalog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ project(WinMLEpCatalogSample
)

# NuGet package version
set(WINML_NUGET_ID "Microsoft.WindowsAppSDK.ML" CACHE STRING "NuGet package ID")
set(WINML_NUGET_VERSION "1.8.2141" CACHE STRING "NuGet package version")
set(WINML_NUGET_ID "Microsoft.Windows.AI.MachineLearning" CACHE STRING "NuGet package ID")
set(WINML_NUGET_VERSION "2.1.1" CACHE STRING "NuGet package version")

# Packages are restored / extracted under the build directory.
cmake_path(APPEND CMAKE_CURRENT_BINARY_DIR "packages" OUTPUT_VARIABLE WINML_PACKAGES_DIR)

# Repo-level NuGet config (contains the WinAppSDK-SampleDeps feed and localpackages).
cmake_path(APPEND CMAKE_CURRENT_SOURCE_DIR "../../../../Samples/nuget.config"
cmake_path(APPEND CMAKE_CURRENT_SOURCE_DIR "../../nuget.config"
OUTPUT_VARIABLE _winml_nuget_cfg_default)
cmake_path(NORMAL_PATH _winml_nuget_cfg_default)
set(WINML_NUGET_CONFIG "${_winml_nuget_cfg_default}"
Expand Down Expand Up @@ -97,14 +97,13 @@ add_custom_command(TARGET WinMLEpCatalogSample POST_BUILD
VERBATIM
)

# DirectML.dll and onnxruntime_providers_shared.dll have no import libraries,
# so they are not included in TARGET_RUNTIME_DLLS. Copy them explicitly so
# execution provider registration works when the sample runs in-place.
# DirectML.dll has no import library, so it is not included in TARGET_RUNTIME_DLLS.
Comment thread
mahabayana marked this conversation as resolved.
# Copy it explicitly so execution provider registration works when the sample runs in-place.
# Note: onnxruntime_providers_shared.dll was removed — it is no longer part of the
# Microsoft.Windows.AI.MachineLearning 2.x package.
add_custom_command(TARGET WinMLEpCatalogSample POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${WINML_DIRECTML_DLL}" $<TARGET_FILE_DIR:WinMLEpCatalogSample>
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${WINML_ONNXRUNTIME_PROVIDERS_SHARED_DLL}" $<TARGET_FILE_DIR:WinMLEpCatalogSample>
COMMAND_EXPAND_LISTS
VERBATIM
)
Expand Down
2 changes: 1 addition & 1 deletion Samples/WindowsML/cmake/WinMLEpCatalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cmake --build out/build/nuget --config RelWithDebInfo
To use a different version:

```powershell
cmake --preset nuget -DWINML_NUGET_VERSION=1.8.2124
cmake --preset nuget -DWINML_NUGET_VERSION=2.1.1
```

To use a local `.nupkg` instead of NuGet restore, place it in this directory
Expand Down
Loading