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

[Bug] Cannot be build on linux. #32

Open
mandel-macaque opened this issue Jan 17, 2022 · 6 comments
Open

[Bug] Cannot be build on linux. #32

mandel-macaque opened this issue Jan 17, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mandel-macaque
Copy link

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.

@mandel-macaque mandel-macaque added the bug Something isn't working label Jan 17, 2022
@mandel-macaque
Copy link
Author

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

@jsuarezruiz jsuarezruiz self-assigned this Jan 31, 2022
@thomiel
Copy link

thomiel commented Feb 3, 2022

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

@glperkins409
Copy link

glperkins409 commented Mar 22, 2022

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
Copy link

ckorn commented May 8, 2022

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

@thomiel
Copy link

thomiel commented May 9, 2022

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

@lytico
Copy link
Collaborator

lytico commented Mar 25, 2024

see: #66: how to get it compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants