jsuarezruiz/maui-linux

[Bug] Cannot be build on linux.

mandel-macaque opened this issue · 6 comments

The following error occurs:

home/mandel/Projects/maui-linux/src/DotNet/DotNet.csproj(106,5): error MSB4044: The "Exec" task was not given a value for the required parameter "Command".

Build FAILED.

/home/mandel/Projects/maui-linux/src/DotNet/DotNet.csproj(106,5): error MSB4044: The "Exec" task was not given a value for the required parameter "Command".
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.09
Get-Item: /home/mandel/Projects/maui-linux/eng/package.ps1:21
Line |
  21 |  $dotnet = (Get-Item $dotnet).FullName
     |             ~~~~~~~~~~~~~~~~
     | Cannot find path '/home/mandel/Projects/maui-linux/bin/dotnet/' because it does not exist.

An error occurred when executing task 'dotnet-pack'.
Error: One or more errors occurred. (.NET Core CLI: Process returned an error (exit code 1).)
	.NET Core CLI: Process returned an error (exit code 1).

The issue it seams that there is a mismatch between the scripts that we can find in arcade which correctly bootstrap dotnet in other dotnet project, there is a hack to ln -s the dotnet binary but is a workaround.

A rebuild seems to remove ./bin/dotnet so the workaround just works in a single case

I got stuck here, too. Is there any solution in the pipe?

I was able to get a little further. On line 14 of src/DotNet/DotNet.csproj, there is a check to see which OS platform we are running on. I changed that to "linux", as it is more appropriate for me.
For the pipe issue, on my system /bin/sh points to dash. We really want bash. Change "sh" on line 18 of the same file to "bash".
After lots of downloads, nuget is currently trying to download microsoft.android.sdk.linux::31.0.200-preview.13.11. Looking at nuget.org, I don't see this package available, so my next task is to see where that version number comes from.

ckorn commented

Any progress here? Seems still to be a long way.

As lytico pointed out, a rebase would be necessary now (or maybe better a complete new manual adaptation of the current maui HEAD?). The Tizen support could be a template to do it. Also GtkSharp needes to be raised to .NET 6: GtkSharp/GtkSharp#349

see: #66: how to get it compile