bonk-docs/content/getting_started/installation.md

29 lines
640 B
Markdown
Raw Normal View History

2019-09-15 02:55:02 +00:00
---
title: "Installation"
date: 2019-09-14T18:20:28-07:00
---
The simplest way of using Bonk is by including it in your C# project as a NuGet package.
To include the latest version of Bonk in your project using the .NET CLI, use the following command:
```sh
2020-07-18 10:28:28 +00:00
dotnet add package MoonTools.Bonk
2019-09-15 02:55:02 +00:00
```
If you are using the NuGet Package Manager, you may do:
```sh
2020-07-18 10:28:28 +00:00
PM> Install-Package MoonTools.Bonk
2019-09-15 02:55:02 +00:00
```
Once you have done this, you may access Bonk functionality by including
```cs
2020-07-18 10:28:28 +00:00
using MoonTools.Bonk;
2019-09-15 02:55:02 +00:00
```
2019-09-15 04:24:36 +00:00
in any C# file.
2020-07-18 10:28:28 +00:00
Of course, you are free to include the source code directly in your project as well, but this is less convenient.