Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.71 KB

File metadata and controls

39 lines (25 loc) · 1.71 KB

Centralized Package Versions

This repository uses a Directory.Build.props file to manage NuGet package versions centrally for all samples in this folder. This means individual .csproj files reference version variables like $(MauiVersion) instead of hardcoded version numbers.

How it works

The Directory.Build.props at the root of this folder defines:

<MauiVersion>10.0.60</MauiVersion>    <!-- Microsoft.Maui.Controls -->
<DotNetVersion>10.0.7</DotNetVersion>  <!-- Microsoft.Extensions.* packages -->

Each project then references these:

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

In your own projects

This pattern is specific to this samples repository to make it easy to update 100+ projects at once. In your own apps, use explicit version numbers directly in your .csproj:

<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.60" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.7" />

You can find the latest versions on NuGet.org.

Automatic updates

This repository uses Dependabot to automatically open PRs when new stable versions are available. See .github/dependabot.yml for the configuration.

Learn more