Share via

I update the latest vs2022community, cannot use dotnet9.0.32 for MAUI and ios build

Willa 20 Reputation points
2026-03-14T19:01:06.52+00:00

User's image

I want to use Xcode26.2 and .net 9 for MAUI, but it still failed.

First , the workload is empty
请运行“dotnet 工作负载搜索”,查找要安装的工作负载。

sudo dotnet workload search

工作负载 ID 说明 ---------------

I tried to remove the .net10 sdk and .net9sdk, uninstall VS , reinstall vs, download dotnet-sdk-9.0.312-win-x64.exe and install the sdk

Now :

I run dotnet workload list

工作负载版本:9.0.300-manifests.d333777a

已安装的工作负载 ID 清单版本 安装源文件


android 35.0.7/9.0.100 SDK 9.0.300

ios 18.0.9617/9.0.100 SDK 9.0.300

maccatalyst 18.0.9617/9.0.100 SDK 9.0.300

maui 9.0.0/9.0.100 SDK 9.0.300

maui-windows 9.0.0/9.0.100 SDK 9.0.300

使用dotnet workload search查找要安装的其他工作负载。

but, I cannot update to 9.0.312 (for ios26.2 and xcode26)

I tried to run dotnet workload update

已更新广告清单 microsoft.net.workloads。

正在安装工作负载版本 9.0.312。

正在安装 microsoft.net.workloads.9.0.300.msi.x64 .... Done

工作负载安装失败。正在回滚已安装的包...

正在删除 microsoft.net.sdk.aspire.manifest-8.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.mono.toolchain.net8.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.mono.toolchain.net7.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.mono.toolchain.net6.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.mono.toolchain.current.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.sdk.tvos.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.sdk.maui.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.sdk.macos.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.sdk.maccatalyst.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.sdk.ios.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.sdk.android.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.emscripten.net8.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.emscripten.net7.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.emscripten.net6.manifest-9.0.100.msi.x64 .... Done

正在删除 microsoft.net.workload.emscripten.current.manifest-9.0.100.msi.x64 .... Done

安装回滚失败: 未安装工作负载版本 microsoft.net.sdk.android: 35.0.105/9.0.100 中的工作负载清单 9.0.312。运行 "dotnet workload repair" 可能会解决此问题。

正在删除 microsoft.net.workloads.9.0.300.msi.x64 .... Done

工作负载更新失败: 未安装工作负载版本 microsoft.net.sdk.android: 35.0.105/9.0.100 中的工作负载清单 9.0.312。运行 "dotnet workload repair" 可能会解决此问题。

i tried to run repair, it says 成功修复工作负载: android ios maccatalyst maui maui-windows, but when I run dotnet --version

9.0.312
After this step , I run dotnet workload list, it's not 9.0.312

工作负载版本:9.0.300-manifests.d333777a

已安装的工作负载 ID 清单版本 安装源文件


android 35.0.7/9.0.100 SDK 9.0.300

ios 18.0.9617/9.0.100 SDK 9.0.300

maccatalyst 18.0.9617/9.0.100 SDK 9.0.300

maui 9.0.0/9.0.100 SDK 9.0.300

maui-windows 9.0.0/9.0.100 SDK 9.0.300

使用dotnet workload search查找要安装的其他工作负载。
And there are some other issues, refer to the images.
User's image

Developer technologies | .NET | .NET MAUI

Answer accepted by question author
  1. Nancy Vo (WICLOUD CORPORATION) 2,495 Reputation points Microsoft External Staff Moderator
    2026-03-16T10:48:58.4866667+00:00

    Hi @Willa ,

    Thank you for reaching out. From what you shared, your machine is in a version-mismatch state. Your .NET SDK is 9.0.312, but the installed MAUI/iOS workload manifests are still 9.0.300, which is why Visual Studio reports missing manifests and may hide MAUI templates or .fail iOS validation.

    I recommend these solutions:

    • Make sure you Visual studio and your terminal are using the same dotnet. Open Developer Command Prompt for VS 2022 and then run:
    where dotnet
    dotnet --info
    dotnet workload --info
    dotnet workload list
    

    If you see multiple different paths, Visual Studio may be using a different one than your terminal.

    • In the repo root (next to the .sln), create or update global.json to the exact SDK:
    {
      "sdk": {
        "version": "9.0.312",
        "rollForward": "latestPatch"
      }
    }
    
    • Again, try to repair + re-install workloads for the pinned SDK by running these commands:
    dotnet workload repair
    dotnet workload update
    
    • If workloads still stick to 9.0.300, let's do a clean workload reset.
    1. Uninstall workloads.
    dotnet workload uninstall maui ios android maccatalyst maui-windows
    
    1. Clean workload state.
    dotnet workload clean
    
    1. Reinstall.
    dotnet workload install maui
    
    1. Then verify again:
    dotnet workload list
    dotnet workload --info
    
    • Also make sure Visual Studio actually has the MAUI tooling installed:

    Even if CLI is fixed, VS might not show templates if the VS components aren’t installed. Open Visual Studio Installer → Modify → ensure “.NET MAUI development” / mobile workloads are selected.

    Hope this helps. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance provide feedback. Thank you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-14T19:01:29.7233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The environment is in a broken workload state. .NET MAUI workloads and their manifests for .NET 9 have drifted and Visual Studio cannot find the expected 9.0.312 workload set, which causes the pairing and build errors.

    Follow a full cleanup and reinstall so that the .NET 9 MAUI workloads and Visual Studio are consistent.

    1. Remove MAUI workloads installed via CLI
         dotnet workload uninstall maui
      
      If other MAUI-related workloads were installed explicitly (android, ios, maccatalyst, maui-windows), uninstall them as well.
    2. Uninstall all standalone .NET SDKs In Windows Control Panel → Programs and Features, uninstall every standalone .NET SDK (entries like Microsoft .NET SDK 6.x, 7.x, 8.x, 9.x, 10.x).
    3. Remove Visual Studio MAUI workloads In the Visual Studio Installer, for every installed VS instance, modify the installation and remove:
      • “.NET Multi-platform App UI development”
      • “.NET desktop development” (if not needed for other work)
    4. Remove remaining SDK MSI packages Open an elevated Command Prompt and run:
         reg query HKLM\SOFTWARE\Microsoft\Windows\currentversion\uninstall\ -s -f manifest
      
      For each .NET 6+ SDK package returned, copy its GUID and uninstall it:
         msiexec /x {GUID-FROM-OUTPUT} /q IGNOREDEPENDENCIES=ALL
      
      Repeat the reg query command until it returns no results.
    5. Delete residual .NET folders (after all SDKs are removed) Delete these directories if they exist:
      • C:\Program Files\dotnet\sdk-manifests
      • C:\Program Files\dotnet\metadata
      • C:\Program Files\dotnet\packs
      • C:\Program Files\dotnet\library-packs
      • C:\Program Files\dotnet\template-packs
      • Any remaining C:\Program Files\dotnet\sdk\6.*, 7.* (and any other old versions)
      • Any remaining C:\Program Files\dotnet\host\fxr\6.*, 7.* (and other old versions)
      This removes the corrupted workload manifests that are blocking 9.0.312.
    6. Reinstall Visual Studio with MAUI Install or modify Visual Studio 2022 and add the “.NET Multi-platform App UI development” workload with its default options. This installs a consistent set of .NET SDK and MAUI workloads.
    7. Install the desired .NET 9 SDK After Visual Studio is installed, run the official .NET 9.0.312 SDK installer again if needed. Ensure that dotnet --version returns 9.0.312.
    8. Verify workloads Run:
         dotnet workload list
      
      The MAUI-related workloads (android, ios, maccatalyst, maui, maui-windows) should now show versions aligned with the installed SDK and no longer reference the old 9.0.300 manifest set.

    If the machine still reports “workload set version 9.0.312 is missing” after these steps, repeat dotnet workload repair once more; with the old manifests removed, repair can now restore the correct 9.0.312 workload set that Visual Studio and Xcode 26.2 require.


    References:


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.