CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 20:40:12 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"dc26232294308c5d4ef0654535fc0846"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=TsnADaRS%2B1Q2PoQF86Qrsd8EKlEDND3s7Gm6A0IF%2BEal6QiMmwG9vttC6HOlE3%2F%2FXhm6izQC1asYO4W9X5P4s3lfohhU%2BMaXMOrUfNEPXbg2Qhn3U%2FuJ70QlL24GOUhih1utqag7%2FmjJ1e81i5TpMURNRGTT1gMk%2FpMF8eM3YQ7sJgmK6ByMt%2B0djNEohancJpsSlKiaRR%2FdA7XAhHnG6Z7cn5NPAsFKo40AZhfeAHMm%2Ftz7kEzcqpAJE46Neo3FKzijIKaVJglUoiWa9zpv3Q%3D%3D--FO2by8O3PZTEX8Wv--TajNgYa6vi%2F8Thmyn4w9Kw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1299365198.1753303212; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:40:12 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:40:12 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8EC2:394F4C:10B575A:13DD418:688148AC
Upgrading .NET MAUI from .NET 7 to .NET 8 · dotnet/maui Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Upgrading .NET MAUI from .NET 7 to .NET 8
David Ortinau edited this page Nov 16, 2023
·
5 revisions
To upgrade from .NET 7 to 8:
- First, read the release notes and What's New in .NET 8
- Install .NET 8 and the .NET MAUI workload with Visual Studio 17.8+, or with the standalone installer and
dotnet workload install maui
command. - Change your target framework (TFM) references from
net7.0-*
tonet8.0-*
. If you are using a TFM likenet7.0-ios13.6
, be sure to match the shipping version of that platform or just remove the platform version (i.e.13.6
). - delete your
bin
andobj
folders
We recommend also adding explicit package references to .NET MAUI NuGet packages:
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
</ItemGroup>
The $(MauiVersion)
variable is referenced from the version of .NET MAUI you have installed. You may override this by adding <MauiVersion></MauiVersion>
to the csproj like this:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks>
<UseMaui>True</UseMaui>
<MauiVersion>8.0.3</MauiVersion>
...
This is useful when using ad-hoc builds from the Nightly Feed or builds downloaded from pull requests.
The following behavior has changed from the previous release:
- Use of the xref:Microsoft.Maui.Controls.Maps.Map control from XAML now requires the following
xmlns
namespace declaration:xmlns:maps="https://schemas.microsoft.com/dotnet/2021/maui/maps"
. - Image caching is disabled on Android when loading an image from a stream with the
ImageSource.FromStream
method. This is due to the lack of data from which to create a reasonable cache key. - On iOS, pages automatically scroll when the soft input keyboard would cover a text entry field, so that the field is above the soft input keyboard. The
KeyboardAutoManagerScroll.Disconnect
method, in theMicrosoft.Maui.Platform
namespace, can be called to disable this default behavior. TheKeyboardAutoManagerScroll.Connect
method can be called to re-enable the behavior after it's been disabled. - How the color of a tab is set in a Shell app has changed on some platforms.
- It's not required to specify a value for the
$(ApplicationIdGuid)
build property in your app's project file. This is because .NET MAUI Windows apps no longer require a GUID as an app ID, and instead use the value of the$(ApplicationId)
build property as the app ID. Therefore, the same reverse domain format app ID is now used across all platforms, such as com.mycompany.myapp. - .NET MAUI Mac Catalyst apps are no longer limited to 50 menu items on the menu bar.
- The
PlatformImage.FromStream
method, in theMicrosoft.Maui.Graphics
namespace, can now be used to load images on Windows instead of having to use theW2DImageLoadingService
class.
You can’t perform that action at this time.