Environment:Microsoft Onnxruntime Windows Build Environment
| Field | Value |
|---|---|
| sources | .pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml |
| domains | ci-cd, windows, packaging, nuget, azure-devops |
| last_updated | 2026-02-10 |
Overview
The Windows CI/CD build environment for compiling, packaging, signing, and publishing ONNX Runtime NuGet packages using Azure DevOps OneBranch pipelines on Windows build agents.
Description
The Windows Build Environment provides the infrastructure for producing official ONNX Runtime NuGet packages for Windows platforms. It uses Azure DevOps OneBranch pipelines running on Windows build agents with Visual Studio build tools. The environment supports building for multiple architectures (x64, x86, arm64) with both dynamic and static C runtime variants. It includes security scanning via TSA (Trust Security Analysis), PoliCheck for compliance, and Component Governance for dependency tracking. The pipeline manages symbol upload to Microsoft's symbol server and produces signed NuGet packages for distribution. The Microsoft.AI.MachineLearning NuGet package is the primary artifact targeting the Windows AI platform.
Usage
Use this environment whenever you need to:
- Build ONNX Runtime for Windows (x64, x86, arm64) targets.
- Create signed NuGet packages for the Microsoft.AI.MachineLearning distribution.
- Run the official Azure DevOps OneBranch CI/CD pipeline.
- Manage Windows-specific build configurations and signing.
System Requirements
| Requirement | Minimum | Recommended |
|---|---|---|
| Operating System | Windows Server 2019 | Windows Server 2022 |
| Build Tools | Visual Studio 2019 Build Tools | Visual Studio 2022 Build Tools |
| Architecture | x64 (build host) | x64 |
| CI/CD | Azure DevOps OneBranch | Azure DevOps OneBranch |
Dependencies
Build Tools
| Tool | Purpose |
|---|---|
| Visual Studio Build Tools | C++ compilation for Windows targets |
| NuGet CLI | Package creation and publishing |
| Azure DevOps Agent | Pipeline execution |
| OneBranch Templates | Standardized build/sign/publish workflow |
Code Evidence
Source: .pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml - Pipeline definition for WindowsAI NuGet package build - Parameters: UploadSymbols (boolean) - Build stage targets: x64, x86, arm64 with dynamic and static CRT - SDL settings: TSA enabled, PoliCheck breaking, CG alerting