dotnet / dotnet/maui

Build whole Maui app (including Windows) on any OS

Open
#3,925 4 comments 6 reactions 0 assignees View on GitHub
area-setup external partner/winui platform/windows proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

A brand new Maui app project includes these two lines:

```xml
net6.0-android;net6.0-ios;net6.0-maccatalyst
$(TargetFrameworks);net6.0-windows10.0.19041
```

Why can I target any OS on any OS *except* (of all things) target Windows from another OS? I like to build on Linux agents because they build my software faster than any other. What is it about targeting Windows that requires being on a Windows agent?

### Public API Changes

N/A

### Intended Use-Case

I want to build my app in its entirety from any dev box or build agent.

> VS bug [#1849778](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1849778)

Contributor guide

Open the contributing guide

Research direction

Start by examining the two TargetFrameworks entries in the new MAUI project file and the condition that adds net6.0-windows10.0.19041. Read the linked VS bug for existing constraints and determine what would need to change for a non-Windows build agent. Done means the complete app builds, including the Windows target, from another OS.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.