2018-07-03 22:21:35 -07:00
|
|
|
# Dotnet Core examples
|
2018-08-28 16:59:39 +02:00
|
|
|
The following examples showcase how to use OrTools.
|
|
|
|
|
The project solution has examples for both C# and F#.
|
2018-07-03 22:21:35 -07:00
|
|
|
|
2018-08-28 16:59:39 +02:00
|
|
|
We recommend that all projects you create target `netcoreapp2.1`,
|
|
|
|
|
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
|
|
|
|
2018-08-28 16:59:39 +02:00
|
|
|
## Execution
|
|
|
|
|
Running the examples will involve compiling them, then running them. You can run the following command:
|
|
|
|
|
```bash
|
|
|
|
|
dotnet run --project examples/dotnet/<example>.csproj
|
|
|
|
|
```
|
2018-07-03 22:21:35 -07:00
|
|
|
|