Skip to content

A simple repository with the minimal necessary configuration to create a xamarin based desktop application that can run on Windows, OS X, and Linux

License

Notifications You must be signed in to change notification settings

NeverOddOrEven/xamarin-gtk-sharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xamarin GTK#

I found it surprisingly cheeky to configure a Xamarin Forms project, for a desktop application, that compiles and runs on both Windows and Linux. I hope my efforts are helpful to you.

Was this repo helpful? Leave a star!

Feel free to take this code and use it how you see fit. It is unlicensed! Leaving a star tells me it was useful to you.

Building on Linux

I am running on Ubuntu Bionic. These steps worked for me. Your mileage may vary.

  1. Install Mono. I recommend following the steps for your Linux distro here. You will want to install the mono-complete package.
  2. Install NuGet. sudo apt-get install nuget. This will pull the nuget package from the stable-bionic mono repository as set in /etc/apt/sources.list.d/mono-official-stable.list
  3. Navigate into the location where you cloned this repository.
  4. Restore the NuGet packages: nuget restore
  5. Build the code: msbuild
  6. Run the program: mono src/xamarin.ui.gtk/bin/Debug/xamarin_rtsp_poc.gtk.exe

I also used Visual Studio Code and MonoDevelop to edit the code on Linux.

Building on Windows

I am running on Windows 10 Pro with Visual Studio Code 2017 CE.

  1. Install Visual Studio 2017
  2. Install GTK# for .NET
  3. Set xamarin.ui.gtk as the start-up project
  4. Build & Run the program.

This setup works with .NET v4.7 and Xamarin Forms v3.3.0.967583 on Windows 10, with Visual Studio 2017. I also used Visual Studio Code on Windows, as it is really nice to be able to manipulate the project files directly.

Contributing

I accept pull requests, just be aware of the permissive nature of the license.

License

The Unlicense

About

A simple repository with the minimal necessary configuration to create a xamarin based desktop application that can run on Windows, OS X, and Linux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages