Skip to content

[BUG] Does not compile on Linux #3185

@matt-goldman

Description

@matt-goldman

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

The Community Toolkit targets five OSes:

  • iOS
  • Android
  • Windows
  • macOS
  • Tizen

Developing for all of these is a supported scenario on Windows, and developing for all of these except Windows is supported on macOS. Development for Android and Tizen is also supported on Linux; however this is not currently possible as macOS and iOS are included TFMs on every OS platform.

Attempted to compile (even targetting Android) fails on Linux as the macOS and iOS workloads are not available.

Expected Behavior

Solution should build when the TFM is supported.

Steps To Reproduce

  1. Clone the repo on a Linux OS
  2. Attempt to build the sample (or libraries) targeting Android (dotnet build -f net10.0-android)
  3. Observe several compiler errors related to iOS and macOS

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

- .NET MAUI CommunityToolkit: any
- OS: Linux
- .NET MAUI: any

Anything else?

This may be limited in scope (i.e. probably just affecting me right now having switched to Linux as my faily driver), but with the Avalonia backend now providing a Linux desktop in preview, this will become more important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions