Skip to content

Conversation

@jfversluis
Copy link
Member

Description of Change

The error in #25837 seems to be caused by the fact that the WinUI app is not "long path aware", adding this setting to the default templates should mitigate this problem.

Also see: https://learn.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#application-manifest-updates-to-declare-long-path-capability

Issues Fixed

Fixes #25837

@jfversluis jfversluis added this to the .NET 10.0 GA milestone Oct 21, 2025
Copilot AI review requested due to automatic review settings October 21, 2025 12:36
@jfversluis jfversluis added platform/windows area-templates Project templates, Item Templates for Blazor and MAUI labels Oct 21, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables long path support for Windows applications by adding the longPathAware setting to app manifests across all .NET MAUI project templates. This addresses issues where applications encounter path length limitations on Windows, fixing issue #25837.

Key Changes:

  • Added <longPathAware>true</longPathAware> to Windows app manifests in all MAUI templates
  • Ensures new projects created from templates can handle file paths longer than the traditional 260-character limit

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/Templates/src/templates/maui-multiproject/MauiApp.1.WinUI/app.manifest Added longPathAware setting to multi-project WinUI template
src/Templates/src/templates/maui-mobile/Platforms/Windows/app.manifest Added longPathAware setting to mobile template's Windows platform manifest
src/Templates/src/templates/maui-blazor/Platforms/Windows/app.manifest Added longPathAware setting to Blazor template's Windows platform manifest
src/Templates/src/templates/maui-blazor-solution/MauiApp.1/Platforms/Windows/app.manifest Added longPathAware setting to Blazor solution template's Windows platform manifest

@rmarinho
Copy link
Member

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx: https://github.com/dotnet/maui/actions/runs/18725159402

@rmarinho rmarinho merged commit 827408e into net10.0 Oct 22, 2025
19 checks passed
@rmarinho rmarinho deleted the jfversluis-patch-7 branch October 22, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-templates Project templates, Item Templates for Blazor and MAUI platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants