Skip to content

MAUI app generated from template should be instantly compilable on Linux #14088

@Ghostbird

Description

@Ghostbird

Description

Currently when I generate a new MAUI app, I first need to edit the project file before it can be built. It would be nice if it delivered an app that could be built immediately.

Currently when I do this:

dotnet new maui -n testapp
dotnet build testapp

I get the error

The project depends on the following workload packs that do not exist in any of the workloads available in this installation: Microsoft.ios.Sdk.net7
The project depends on the following workload packs that do not exist in any of the workloads available in this installation: Microsoft.maccatalyst.Sdk.net7

Then I need to move net7.0-ios and net7.0-maccatalyst to a conditional:

<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(TargetFrameworks);net7.0-ios;net7.0-maccatalyst</TargetFrameworks>

Since (AFAIK) building for iOS and Mac is only supported on MacOS. I'm using Debian, and it's clearly not supported there.

Public API Changes

None as far as I know

Intended Use-Case

dotnet new maui -n testapp
dotnet build testapp

Should build successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions