Giter VIP home page Giter VIP logo

Comments (7)

ekolis avatar ekolis commented on May 14, 2024

I believe this would require converting FrEee.Core to a .NET Standard library; I've tried this in the past and run into issues, but maybe it won't be as problematic with newer versions of .NET Standard?

from freee.

ekolis avatar ekolis commented on May 14, 2024

I think I found a way to run Xamarin on Linux - you need to create a GTK# app: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/other/gtk?tabs=windows

I tested this with an app I was working on for my job and I was able to create a GTK# app that runs on Windows; haven't tested it on Linux yet...

from freee.

ekolis avatar ekolis commented on May 14, 2024

OK, I tested my work app on Linux and I get an error...

https://stackoverflow.com/questions/58068286/filenotfoundexception-when-running-a-gtk-app-in-mono-on-linux

https://stackoverflow.com/questions/57997705/error-cs0234-after-changing-the-net-framework-version-of-my-xamarin-gtk-app

from freee.

ekolis avatar ekolis commented on May 14, 2024

We might need to port the game to .NET Core #20 first in order to port it to Xamarin?

from freee.

KarbonKitty avatar KarbonKitty commented on May 14, 2024

If the goal is to get multi-platform GUI going, it seems that there are a couple of alternatives that should be better when targeting desktop (as Xamarin seems to be mostly focused on mobile apps at the moment). Two that I found are Eto.Forms (https://github.com/picoe/Eto) and AvaloniaUI (https://avaloniaui.net/), both of which are open source at work across Windows, Linux and Mac.

From what I gather, the WinForms code is reasonably well decoupled from the back-end, and thus it should be relatively easy to port the game to one of those platforms, which should have enough capabilities to handle it.

from freee.

ekolis avatar ekolis commented on May 14, 2024

Hmm. I've heard of Avalonia; I had issues trying it out because the forms designer was broken or missing or something like that. Never heard of Eto; I'll have to look into that. There's also Blazor, which is supposedly going to be expanded to support not only web apps but desktop and mobile apps as well, but that doesn't sound like it will be happening until next year.

from freee.

ekolis avatar ekolis commented on May 14, 2024

Now that we have the game converted to .NET Core, I tried creating a Xamarin project for it. All went well, until I tried to link in the FrEee core project; it needs to be a .NET Standard project in order to be linked from Xamarin, but .NET Standard is missing some certain APIs (such as scripting) that we need. I suppose this will all be sorted out with the release of .NET 5, unifying all the various .NET platforms?

from freee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.