Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

So far, how can I use this project in my solution to support linux? #92

Open
ISDHN opened this issue Apr 17, 2024 · 2 comments
Open

So far, how can I use this project in my solution to support linux? #92

ISDHN opened this issue Apr 17, 2024 · 2 comments

Comments

@ISDHN
Copy link

ISDHN commented Apr 17, 2024

In the wiki and the issues, I couldn't find infomation like tutorial or guide or something like that.
I'd like to make a try with this project. Could anybody help?

@osnipezzini
Copy link

Please we wanna contribute to this project, but we need some way to know how to build and run this solution. I tryed open in Visual Studio 2022 on Windows and has a lot of errors and i'm unabled to build

@davidbitterlich
Copy link

Normally you're going to compile the code by this command (took me ages to find out, maybe I'm too dumb but there is no good documentation about how to do it on Linux at all and no documentation about the requirements like gtk workload): dotnet cake --target=dotnet-pack --workloads=global --gtk

Then you'll install it locally: dotnet new install /artifacts/*.nupkg

Finally you should be able to use dotnet new templates to create maui apps on top of this codebase. However when I create a maui project, I am unable to compile it as it complains about missing net8.0-ios. When I adjust the TargetFrameworks in the csproj, I get the following error:

CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point

I've seen that there is an example project in src/Controls/samples: Controls.Sample.Gtk... However, I cannot build it: error CS0234: the type or namespace "Gtk" is not available in the namespace "Microsoft.Maui.Graphics.Platform", hmm...

Btw the implementations between the template generated by package and the example differ much (the sample contains a main method, the template project does not).

I don't know if I'm doing something wrong or is the codebase simply not ready yet to be used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants