How to update entire MAUI workload to latest? (8.0.20)

Mikkel Bech 30 Reputation points
2024-04-16T09:48:41.18+00:00

How do I update my entire .NET MAUI workload to the latest stable version 8.0.20?

The latest version can be found here: https://github.com/dotnet/maui/releases/tag/8.0.20

When i run sudo dotnet workload update then it doesn't update to the latest version of MAUI 8.0.20. Instead it keeps me at version 8.0.7.

What do I need to do to update to 8.0.20? Is it because some of the items in the workload is still dependent on 8.0.7 and therefore I can't update to 8.0.20?

See my system below:

Installed Workload Id      Manifest Version      Installation Source
--------------------------------------------------------------------
maui                       8.0.7/8.0.100         SDK 8.0.200        

I have the latest version of .NET RUNTIME 8.0.4 and .NET SDK 8.0.204.

➜  ~ dotnet --info
.NET SDK:
 Version:           8.0.204
 Commit:            c338c7548c
 Workload version:  8.0.200-manifests.c4df6daf

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  14.4
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/8.0.204/

.NET workloads installed:
 [maui]
   Installation Source: SDK 8.0.200
   Manifest Version:    8.0.7/8.0.100
   Manifest Path:       /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.maui/8.0.7/WorkloadManifest.json
   Install Type:        FileBased


Host:
  Version:      8.0.4
  Architecture: arm64
  Commit:       2d7eea2529

.NET SDKs installed:
  8.0.204 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,884 questions
{count} vote

Accepted answer
  1. Bruce (SqlWork.com) 56,286 Reputation points
    2024-04-17T15:56:42.89+00:00

    that is the lastest workload.

    workloads are not updated when nuget packages are updated, only when the tools/sdks it installs are updated (not patched - patches are only bug fixes, not changes in behavior). also updating a workload will not update the nuget references in an existing projects. only when creating a new projects. as a best practice, your first step after creating a project, should be to updated the nuget packages to lastest version.

    you should have a regular schedule to update the nuget packages in your projects.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,416 Reputation points Microsoft Vendor
    2024-04-17T07:17:30.3566667+00:00

    Hello,

    Please open a MAUI project by VS for Mac and expand the Dependencies->net8.0-ios->NuGet->Microsoft.MAUI.Controls, then check if there is a warning to update to 8.0.200. If so, you can click the button and accept to install. Update

    As Bruce said, the workload is latest. The .NET SDK installs the latest workloads successfully.

    
    Installed Workload Id      Manifest Version      Installation Source
    
    --------------------------------------------------------------------
    
    maui                       8.0.7/8.0.100         SDK 8.0.200
    
    

    For more details, you can refer to the closed known issue- KNOWN ISSUE: .NET SDK 8.0.200 Installs the Incorrect MAUI Workload Versions · Issue #20600 · dotnet/maui · GitHub

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments