[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-05 UTC."],[[["\u003cp\u003eThis guide provides step-by-step instructions for setting up and running a simple OR-Tools application in .NET on Windows 10 (x64).\u003c/p\u003e\n"],["\u003cp\u003eYou need to install prerequisites like Microsoft Visual C++ Redistributable, .NET Core 3.1 SDK (version 3.1.100 or higher), and .NET 6.0 SDK before proceeding.\u003c/p\u003e\n"],["\u003cp\u003eThe guide includes instructions on obtaining the example code from the \u003ccode\u003edotnet_or-tools\u003c/code\u003e GitHub repository and building it using \u003ccode\u003edotnet\u003c/code\u003e commands.\u003c/p\u003e\n"],["\u003cp\u003eFinally, you can execute the built application using \u003ccode\u003edotnet run -c Release\u003c/code\u003e to see OR-Tools in action.\u003c/p\u003e\n"]]],["To use OR-Tools in .Net, ensure you have Windows 10 64-bit, Visual Studio 2022, and the Microsoft Visual C++ Redistributable (x64). Install .NET Core 3.1 SDK (3.1.100+) and .NET 6.0 SDK. Obtain the example code from the `dotnet_or-tools` repository, either by downloading the zip or cloning it. Navigate to the examples directory, build the project with `dotnet build -c Release`, and run it using `dotnet run -c Release`.\n"],null,["# Using OR-Tools NuGet for .Net\n\nIntroduction\n------------\n\nThis guide gets you started with OR-Tools in .Net with a simple working\nexample.\n\nAlthough these instructions might also work on other Windows variants, we\nhave only tested them on machines meeting the following requirements:\n\n\nWindows 10 64-bit (x86_64) with:\n\n- Microsoft Visual Studio Enterprise 2022\n- Microsoft Visual Studio Community 2022 Preview 2 or above\n\n\u003cbr /\u003e\n\nPrerequisites\n-------------\n\nThe following sections describe the prerequisites for installing OR-Tools.\n\n### Microsoft Visual C++ Redistributable\n\nYou must have the\n[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\non your computer, since OR-Tools library for .Net is a wrapper for the\nC++ native library.\n\n### .NET Core 3.1 SDK\n\nYou must install the package .NET Core 3.1 SDK version 3.1.100 or higher from\nthe following location:\n[sdk-3.1.425-windows-x64-installer](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-3.1.425-windows-x64-installer)\n\n### .Net 6.0 SDK\n\nYou must install the package .NET 6.0 SDK from\nthe following location:\n[sdk-6.0.403-windows-x64-installer](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.403-windows-x64-installer)\n\nGet the .Net example code\n-------------------------\n\nThe example code is located in the\n[dotnet_or-tools](https://github.com/or-tools/dotnet_or-tools) repository.\n\n1. [Download the repository as a zip file](https://github.com/or-tools/dotnet_or-tools/archive/v9.12.zip)\n and extract it, or clone the repository:\n\n git clone -b v9.12 --depth 1 https://github.com/or-tools/dotnet_or-tools\n\n2. Change to the examples directory:\n\n cd dotnet_or-tools\n\nBuild the example\n-----------------\n\nFrom the `dotnet_or-tools` directory:\n\nBuild the project using:\n\n\n dotnet build -c Release\n\n\u003cbr /\u003e\n\nRun the example\n---------------\n\nFrom the `dotnet_or-tools` directory:\n\nRun the binary using:\n\n\n dotnet run -c Release\n\n\u003cbr /\u003e\n\nCongratulations! You've just run an application with OR-Tools, you are ready to\n[get started with OR-Tools](../../introduction/dotnet)."]]