i think i prefer dotnet to mono
This commit is contained in:
parent
21e2cf6881
commit
c924bc034c
1 changed files with 19 additions and 14 deletions
33
readme.md
33
readme.md
|
@ -7,50 +7,55 @@ i figured, may as well try and learn c#
|
||||||
|
|
||||||
## installing prerequisites
|
## installing prerequisites
|
||||||
you will need either:
|
you will need either:
|
||||||
|
- [dotnet core sdk](https://dotnet.microsoft.com/) (recommended, it's the easiest to use)
|
||||||
- [mono](https://www.mono-project.com/download/stable/) and [gtk sharp 3](https://github.com/GtkSharp/GtkSharp/)
|
- [mono](https://www.mono-project.com/download/stable/) and [gtk sharp 3](https://github.com/GtkSharp/GtkSharp/)
|
||||||
- [dotnet core sdk](https://dotnet.microsoft.com/)
|
|
||||||
|
|
||||||
### debian
|
### debian
|
||||||
|
#### dotnet
|
||||||
|
follow [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian) to add the dotnet repo and install dotnet-sdk.
|
||||||
|
|
||||||
#### mono
|
#### mono
|
||||||
the packages you'll need are `mono-devel` and `gtk-sharp3`, so:
|
the packages you'll need are `mono-devel` and `gtk-sharp3`, so:
|
||||||
```
|
```
|
||||||
sudo apt install mono-devel gtk-sharp3
|
sudo apt install mono-devel gtk-sharp3
|
||||||
```
|
```
|
||||||
#### dotnet
|
|
||||||
follow [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian) to add the dotnet repo and install dotnet-sdk.
|
|
||||||
|
|
||||||
### arch linux
|
### arch linux
|
||||||
#### mono
|
|
||||||
```
|
|
||||||
sudo pacman -S mono gtk-sharp-3
|
|
||||||
```
|
|
||||||
#### dotnet
|
#### dotnet
|
||||||
```
|
```
|
||||||
sudo pacman -S dotnet-sdk
|
sudo pacman -S dotnet-sdk
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### mono
|
||||||
|
```
|
||||||
|
sudo pacman -S mono gtk-sharp-3
|
||||||
|
```
|
||||||
|
|
||||||
### windows
|
### windows
|
||||||
- download and install ".NET Core SDK" from [this page](https://dotnet.microsoft.com/download)
|
- 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)
|
- 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)
|
||||||
|
|
||||||
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
|
i have no idea how to install mono with gtksharp properly on windows, and believe me i tried
|
||||||
|
|
||||||
## compiling
|
## compiling
|
||||||
### mono
|
|
||||||
```
|
|
||||||
mcs -pkg:gtk-sharp-3.0 -resource:ui.glade *.cs
|
|
||||||
```
|
|
||||||
### dotnet
|
### dotnet
|
||||||
```
|
```
|
||||||
dotnet build
|
dotnet build
|
||||||
```
|
```
|
||||||
|
|
||||||
## running
|
|
||||||
### mono
|
### mono
|
||||||
```
|
```
|
||||||
mono ./BuypeebApp.exe
|
mcs -pkg:gtk-sharp-3.0 -resource:ui.glade *.cs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## running
|
||||||
### dotnet
|
### dotnet
|
||||||
```
|
```
|
||||||
dotnet run
|
dotnet run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### mono
|
||||||
|
```
|
||||||
|
mono ./BuypeebApp.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue