MyGit

8.0.3

dotnet/maui

版本发布时间: 2023-11-15 00:08:52

dotnet/maui最新发布版本:8.0.21(2024-04-24 07:14:36)

Introducing the .NET 8 GA release of .NET MAUI

This release is compatible with all the latest versions:

It is also supported with the latest development platforms and tools: Visual Studio 17.8 and Xcode 15.0+ for iOS/MacCatalyst.

.NET MAUI includes and extends the .NET platform SDKs for Android, iOS, iPadOS, macOS, Mac Catalyst, and tvOS.

Get Started

For development on Windows, install .NET 8 and the latest .NET MAUI workload from Visual Studio 17.8+.

For development on Windows or Mac, install the .NET MAUI extension in VS Code and install the latest workload from the standalone installer using the dotnet workload install maui command.

Highlights in .NET 8

See more of what's new in https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-8?view=net-maui-8.0

Breaking Changes

NuGet Package References

.NET MAUI Templates now include PackageReference items for the Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility packages.

<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />

The workload $(MauiVersion) is specified by default, but this can also be changed to allow for easier testing of upcoming Service Release previews, PR builds, or Nightly feed packages without requiring workload commands.

New validation for duplicate images

Following the update, you might encounter a message regarding duplicate files, particularly with image resources. This arises because, previously, we didn't actively check for duplicates, and the image selection was arbitrary. In RC 1, we implemented a check to ensure the absence of duplicates. It's crucial to review any globs, especially those encompassing images, and ensure that images are not inadvertently included multiple times. Instead, make the following update in your csproj file:

<ItemGroup>
    <MauiImage Include="Resources\Images\*" />
    <!-- This would trigger an alert: -->
    <MauiImage Include="Resources\Images\myimage.svg" Color="Red" />
    <!-- This, however, will not result in an error: -->
    <MauiImage Update="Resources\Images\myimage.svg" Color="Red" />
</ItemGroup>

What's Changed since .NET 7

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-11-15发行的版本