buypeeb-cs/readme.md

57 lines
1.3 KiB
Markdown
Raw Normal View History

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-09-01 07:16:42 +00:00
### debian
2020-09-01 07:12:58 +00:00
#### mono
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-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 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
## compiling
2020-09-01 07:12:58 +00:00
### mono
```
mcs -pkg:gtk-sharp-3.0 -resource:ui.glade *.cs
```
2020-09-01 07:12:58 +00:00
### dotnet
```
dotnet build
```
## running
2020-09-01 07:12:58 +00:00
### mono
```
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
```
dotnet run
2020-08-31 13:56:32 +00:00
```