# Installing OR-Tools for .Net from Binary on Windows

## Introduction

This guide explains how to install OR-Tools for .Net on Windows.

Although these instructions might also work on other Windows variants, we
have only tested them on machines meeting the following requirements:


Windows 10 64-bit (x86_64) with:

- Microsoft Visual Studio Enterprise 2022
- Microsoft Visual Studio Community 2022 Preview 2 or above

<br />

> [!NOTE]
> **Note:** OR-Tools only provides archives for the **x86_64** (also known as **amd64**) architecture.

## Prerequisites

The following sections describe the prerequisites for installing OR-Tools.

### Microsoft Visual C++ Redistributable

You must have the
[Microsoft Visual C++ Redistributable for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/?q=Visual+C%2B%2B+Redistributable+for+Visual+Studio) (select the x64 version) installed
on your computer, since OR-Tools library for .Net is a wrapper for the
C++ native library.

### .NET Core 3.1 SDK

You must install the package .NET Core 3.1 SDK version 3.1.100 or higher from
the following location:
[sdk-3.1.425-windows-x64-installer](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-3.1.425-windows-x64-installer)

### .Net 6.0 SDK

You must install the package .NET 6.0 SDK from
the following location:
[sdk-6.0.403-windows-x64-installer](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.403-windows-x64-installer)

## Installing OR-Tools

Take the following steps to install the OR-Tools library for .Net:

Download and extract the binary distribution for your system:


- [Visual Studio 2022](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x64_VisualStudio2022_dotnet_v9.12.4544.zip)

<br />

## Validate your installation

To test your .Net installations, open a x64 Native Tools Command Prompt and navigate to
the directory where you unpacked the binary distribution. Then enter the
following command:


    tools\make test

<br />

This runs a selection of examples for OR-Tools. If all the examples run
successfully, you are ready to
[get started with OR-Tools](https://developers.google.com/optimization/introduction/dotnet).