2018-09-07 10:02:02 +02:00
|
|
|
# .NetCoreApp examples
|
2022-10-05 18:33:10 +02:00
|
|
|
|
2021-05-20 17:54:57 +02:00
|
|
|
The following examples showcase how to use OrTools.<br>
|
2022-04-05 12:30:47 +02:00
|
|
|
The project solution has examples for C#.
|
2018-07-03 22:21:35 -07:00
|
|
|
|
2025-05-12 12:57:50 +02:00
|
|
|
We recommend that all projects you create target `net8.0`,
|
2018-08-28 16:59:39 +02:00
|
|
|
as this allows you to compile for various frameworks and
|
|
|
|
|
keep up-to-date with the latest frameworks.
|
2018-07-03 22:21:35 -07:00
|
|
|
|
2018-08-28 16:59:39 +02:00
|
|
|
Wherever you have or-tools installed, be sure to `PackageReference` the `Google.OrTools`
|
|
|
|
|
from the project file.
|
2018-07-03 22:21:35 -07:00
|
|
|
|
2021-05-20 17:54:57 +02:00
|
|
|
## Execution
|
|
|
|
|
Running the examples will involve building them, then running them.<br>
|
2018-09-07 10:02:02 +02:00
|
|
|
You can run the following command:
|
|
|
|
|
```shell
|
2018-11-08 10:21:52 +01:00
|
|
|
dotnet build <example>.csproj
|
|
|
|
|
dotnet run --no-build --project <example>.csproj
|
2018-09-07 10:02:02 +02:00
|
|
|
```
|