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

Cannot run the samples on Linux because of workload dependencies #91

Open
timothyparez opened this issue Nov 13, 2024 · 5 comments
Open

Comments

@timothyparez
Copy link

If you clone this repository and try to run it on Linux it will fail
because the android and macos workloads are not available:

/usr/lib/dotnet/sdk/8.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier android was not recognized. [...../Projects/Avalonia.Labs/src/Avalonia.Labs.Notifications/Avalonia.Labs.Notifications.csproj::TargetFramework=net8.0-android]
/usr/lib/dotnet/sdk/8.0.110/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier macos was not recognized. [.../Projects/Avalonia.Labs/samples/Avalonia.Labs.Catalog.Desktop/Avalonia.Labs.Catalog.Desktop.csproj::TargetFramework=net8.0-macos]

@emmauss
Copy link
Collaborator

emmauss commented Nov 13, 2024

Install the dotnet android and macos workloads

@timothyparez
Copy link
Author

That doesn't work on Linux/Ubuntu

dotnet workload install android
Workload ID android is not recognized
dotnet workload install maui-android
Workload ID maui-android is not recognized

Other workloads like wasm-tools etc are supported.
It doesn't seem like Microsoft ever had the intention of making Xamarin/Maui stuff work on Linux.
(Which is one of the reasons we use Avalonia instead of MAUI)

@emmauss
Copy link
Collaborator

emmauss commented Nov 13, 2024

Did you install dotnet using the official install scripts from the dotnet site, or using "apt". Using the install scripts is recommended.

@timothyparez
Copy link
Author

I probably installed via apt.
I will try the install scripts on a different machine.

@maxkatz6
Copy link
Member

All standard workloads, except iOS, should be buildable on Linux.

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