Skip to content

Add Directory.Build.props for centralized .NET 11 version management#755

Merged
jfversluis merged 1 commit intomainfrom
add-directory-build-props
Apr 14, 2026
Merged

Add Directory.Build.props for centralized .NET 11 version management#755
jfversluis merged 1 commit intomainfrom
add-directory-build-props

Conversation

@jfversluis
Copy link
Copy Markdown
Member

Summary

Adds a Directory.Build.props at the 11.0/ root to centralize version management for all .NET MAUI 11 samples.

Properties defined

Property Value Usage
MauiVersion 11.0.0-preview.3.26203.7 Microsoft.Maui.Controls package version
DotNetVersion 11.0.0-preview.3.26207.106 Microsoft.Extensions.* package versions
ValidateXcodeVersion false Required for preview SDK compatibility

How to use in sample .csproj files

<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="$(DotNetVersion)" />

No need to set ValidateXcodeVersion per it's inherited automatically.project

Follow-up

Once merged, PRs #743 and #752 should be updated to use $(MauiVersion) / $(DotNetVersion) instead of hardcoded versions, and remove per-project ValidateXcodeVersion settings.

Centralizes MAUI and .NET package versions for all 11.0 samples:
- MauiVersion: 11.0.0-preview.3.26203.7
- DotNetVersion: 11.0.0-preview.3.26207.106
- ValidateXcodeVersion: false (needed for preview SDK)

Projects should reference $(MauiVersion) and $(DotNetVersion) instead
of hardcoding versions in individual .csproj files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jfversluis jfversluis merged commit 495c915 into main Apr 14, 2026
1 of 3 checks passed
@jfversluis jfversluis deleted the add-directory-build-props branch April 14, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant