Evaluating AI Coding Agents in Cross-Platform .NET App Architecture
An experiment evaluating AI coding agents on cross-platform .NET applications reveals how automation changes the economics of building multiple native UIs versus a single unified stack. The study compares Barista Notes, a .NET MAUI application, against separate platform UI implementations using .NET for iOS and .NET for Android.
What changed From the source
Traditional cross-platform decisions rely on team knowledge, capacity, costs, performance, and ecosystem support. In 2026, AI coding agents alter team knowledge and capacity by enabling tools like GitHub Copilot to write UIKit or Android Views regardless of prior team experience. An experiment tested this by having agents rebuild the iOS and Android versions of Barista Notes using .NET for iOS and .NET for Android over a shared class library, while keeping a .NET MAUI app as a reference for Mac Catalyst and Windows.
The Barista Notes app features a dozen screens, over 20 NuGet dependencies, and approximately 31,000 lines of hand-written C#. The original UI uses a reactive style with MauiReactor. The rewrite ran from September 25 to 28 across a GitHub Copilot session utilizing 13 agent identities, taking 58 hours of aggregate model time and under four hours of human time for prompting and validation.
To evaluate maintenance costs, a new feature involving a bean origin map with Mapsui and cached lookups was added to both versions using dedicated agents. Furthermore, runtime metrics were measured on an iPhone 15 Pro and a Pixel 5 using .NET 11 GA, GA runtime packs, and .NET MAUI Controls 11.0.0. With full composite ReadyToRun enabled on both, Android startup medians were 1,233 ms for .NET MAUI and 615 ms for platform UI, while iOS medians were 569 ms and 367 ms respectively.
- The initial rewrite used about 3.293 billion gross input tokens, 7.8 million output tokens, and generated 699 passing tests.
- Shared code across both platforms dropped from 99.2% to 40.4% following the UI separation, though the shared Core remained 56.4% of the Android app and 58.7% of the iOS app.
- Feature addition for platform UI required 1.4 times the model minutes and received 19 defect items compared to 13 for .NET MAUI.
- Signed benchmark package sizes with full ReadyToRun showed platform UI packages were 30% smaller on Android and 17% smaller on iOS.
- Screen navigation measurements generally favored platform UI across tested routes on both Android and iOS.
At a glance · AI & .NET
What changedWhy it mattersWho should careUpgrade and migration considerations
Why it matters Analysis
The experiment demonstrates that while AI agents make generating a second user interface inexpensive in terms of developer writing time, the overall cost of ownership remains substantial. Writing the initial code is fast, but managing multiple UI implementations introduces coordination overhead, verification requirements, and bug fixes that consume significant resources.
The findings suggest that coordination agents and verification harnesses demand high model usage, sometimes exceeding the resource consumption of the implementation phase itself. Runtime performance benefits like improved startup times and smaller package sizes for platform UI must be weighed against the increased complexity of maintaining separate platform-specific view logic.
- AI code generation significantly lowers the barrier to building multiple native user interfaces.
- Verification and coordination overhead can surpass the resource cost of writing the code.
- Performance gains in startup times and binary sizes come with the trade-off of fragmented UI codebases.
Who should care Analysis
Architecture leads, engineering managers, and senior developers evaluating cross-platform strategies for mobile applications will find these insights relevant. Teams considering whether to adopt unified abstractions like .NET MAUI or leverage AI tooling to maintain native UI layers separately must account for the hidden costs of testing and validation.
Developers working with .NET MAUI, .NET for iOS, and .NET for Android can use these findings to better understand the runtime characteristics and maintenance profiles of mixing shared core libraries with different UI presentation layers.
- Engineering teams weighing unified cross-platform frameworks against native UI abstractions.
- Technical leaders planning resource allocations for AI-assisted software development workflows.
Upgrade and migration considerations Analysis
The source does not specify formal migration steps or step-by-step instructions for converting a .NET MAUI application to a platform-specific UI layout using shared libraries. Teams attempting similar architectural shifts must account for runtime configuration differences, such as the default ReadyToRun settings between .NET MAUI and platform-specific targets.
When benchmarking or migrating, developers should ensure package versions and toolchains are properly aligned, as third-party packages, Entity Framework Core versions, and framework runtimes can impact performance metrics and application bundle sizes.
- Account for runtime differences like partial versus full composite ReadyToRun defaults.
- Align package versions across implementations to ensure fair performance and size comparisons.
- Plan for dedicated testing capacity to handle platform-specific behavior gaps.
Sources and further reading
- Original post on .NET Blog (original source)
Original: “AI is Changing the Cross-Platform Decision Matrix”, .NET Blog, published 20 Nov 2026, retrieved 20 Nov 2026. This article was drafted with AI assistance from the official source and passed automated fact and quality checks. Spotted a mistake? See our corrections policy.