2020-08-28 16:04:37 +00:00
Buypeeb
===
i figured, may as well try and learn c#
0uo
2020-09-01 07:16:42 +00:00
## installing prerequisites
2020-09-01 07:12:58 +00:00
you will need either:
- [mono ](https://www.mono-project.com/download/stable/ ) and [gtk sharp 3 ](https://github.com/GtkSharp/GtkSharp/ )
- [dotnet core sdk ](https://dotnet.microsoft.com/ )
2020-08-28 16:04:37 +00:00
2020-09-01 07:16:42 +00:00
### debian
2020-09-01 07:12:58 +00:00
#### mono
2020-08-28 16:04:37 +00:00
the packages you'll need are `mono-devel` and `gtk-sharp3` , so:
```
sudo apt install mono-devel gtk-sharp3
```
2020-09-01 07:12:58 +00:00
#### dotnet
follow [these instructions ](https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian ) to add the dotnet repo and install dotnet-sdk.
2020-08-28 16:04:37 +00:00
2020-09-01 07:16:42 +00:00
### arch linux
2020-09-01 07:12:58 +00:00
#### mono
2020-08-31 13:58:27 +00:00
```
sudo pacman -S mono gtk-sharp-3
```
2020-09-01 07:12:58 +00:00
#### dotnet
```
sudo pacman -S dotnet-sdk
```
2020-08-31 13:58:27 +00:00
2020-09-01 07:16:42 +00:00
### windows
2020-09-01 05:18:15 +00:00
- download and install ".NET Core SDK" from [this page ](https://dotnet.microsoft.com/download )
- run `dotnet build` - this *should* pull in gtk3 automatically - if not, you'll need to [install it yourself ](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/latest )
2020-09-01 05:14:32 +00:00
2020-09-01 07:12:58 +00:00
this will install and use .NET core instead of mono but as far as i know it should be fine. don't try to use mono or you will die
2020-09-01 05:14:32 +00:00
2020-08-28 16:04:37 +00:00
## compiling
2020-09-01 07:12:58 +00:00
### mono
2020-08-28 16:04:37 +00:00
```
mcs -pkg:gtk-sharp-3.0 -resource:ui.glade *.cs
```
2020-09-01 07:12:58 +00:00
### dotnet
2020-09-01 05:14:32 +00:00
```
dotnet build
```
2020-08-28 16:04:37 +00:00
## running
2020-09-01 07:12:58 +00:00
### mono
2020-08-28 16:04:37 +00:00
```
2020-09-01 05:14:32 +00:00
mono ./BuypeebApp.exe
2020-08-31 13:56:32 +00:00
```
2020-09-01 07:12:58 +00:00
### dotnet
2020-08-31 13:56:32 +00:00
```
2020-09-01 05:14:32 +00:00
dotnet run
2020-08-31 13:56:32 +00:00
```