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:
2020-09-01 07:18:31 +00:00
- [dotnet core sdk ](https://dotnet.microsoft.com/ ) (recommended, it's the easiest to use)
2020-09-01 07:12:58 +00:00
- [mono ](https://www.mono-project.com/download/stable/ ) and [gtk sharp 3 ](https://github.com/GtkSharp/GtkSharp/ )
2020-08-28 16:04:37 +00:00
2020-09-01 07:16:42 +00:00
### debian
2020-09-01 07:18:31 +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-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 05:31:13 +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
#### dotnet
```
sudo pacman -S dotnet-sdk
```
2020-08-31 13:58:27 +00:00
2020-09-01 07:18:31 +00:00
#### mono
```
sudo pacman -S mono gtk-sharp-3
```
2020-09-01 05:31:13 +00:00
#### dotnet
```
sudo pacman -S dotnet-sdk
```
2020-09-01 07:18:31 +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:18:31 +00:00
i have no idea how to install mono with gtksharp properly on windows, and believe me i tried
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
### dotnet
2020-09-01 05:14:32 +00:00
```
dotnet build
```
2020-08-28 16:04:37 +00:00
2020-09-01 07:12:58 +00:00
### mono
2020-08-28 16:04:37 +00:00
```
2020-09-01 07:18:31 +00:00
mcs -pkg:gtk-sharp-3.0 -resource:ui.glade *.cs
2020-08-31 13:56:32 +00:00
```
2020-09-01 07:18:31 +00:00
## running
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
```
2020-09-01 07:18:31 +00:00
### mono
```
mono ./BuypeebApp.exe
```