Skip to content

Commit

Permalink
[dotnet] Add notes on updating the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Dec 11, 2023
1 parent 888845f commit 602d015
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions dotnet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Selenium .Net Bindings

Just as in the rest of the project, we use Bazel as our build system. This means that you can take advantage of a
hermetic build environment, and know that your build will work on both macOS and Linux, as well as Windows. However,
this does come at the cost of being a little unusual to work with.

Before opening the VS Studio project, the first thing to do is to build everything you might need using Bazel. To do
this: `bazel build dotnet/...` This first build may take a while, as it will download a bunch of required files. Make
sure you've got a good Internet connection too!

## Updating dependencies

We use [paket][] to manage our dependencies. In order to manage them, first `cd` into the `dotnet` directory, and make
sure you have `paket` installed:

```shell
dotnet new tool-manifest
dotnet tool install paket
dotnet tool restore
```

This should be a one-time step. Once complete, edit the `//dotnet:paket.dependencies` file to add or update the deps you
need. Next, from the root of the project (in the directory where the `WORKSPACE` file is),
run `./dotnet/update-deps.sh`. This should execute successfully and will update both the `paket.lock` and `paket.bzl`
files. Once this is done, commit the changes, and you'll be able to use the files in your build.

[paket]: https://fsprojects.github.io/Paket/

0 comments on commit 602d015

Please sign in to comment.