question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build the .NET MAUI Preview 9 project, VS IDE reports missing components, maui-check tool unable to find the package as it still points to RC 1 source feed

See original GitHub issue

Description

Unable to build the .NET MAUI Preview 9 project, VS IDE reports missing components, maui-check tool unable to find the package as it still points to RC 1 source

Steps to Reproduce

  1. Update VS2022 to Preview 5 (17.0.0 Preview 5.0) with .NET MAUI (Preview) optional workload installed
  2. Updated the .NET MAUI templates to the latest (preview 9) dotnet new --install Microsoft.Maui.Templates
  3. Tried creating a new .NET MAUI project from both CLI and VS IDE, upon loading the project in VS IDE, it reports missing components, but upon launching VS installer, it reports all the required components are up-to-date. Refer attached screenshots
  4. Tried to update the workloads/missing components to the latest using both dotnet workload update and maui-check and they end up in error as they still point to the RC1 feeds
  5. Error reported by dotnet workload update command - microsoft.net.sdk.maui.manifest-6.0.100.msi.x64::6.0.101-preview.9.1805 is not found in NuGet feeds
  6. Error reported by maui-check command - microsoft.maui.core.ref.android.msi.x64::6.0.101-preview.9.1805 is not found in NuGet feeds

Kindly let me know the RC2 source feed URL to try the same and I tried the below URL but it’s not available (https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.2.21505.57-shipping/nuget/v3/index.json).

Expected Behavior

The project should build and run on all the supported platforms.

Actual Behavior

Reports missing components and there is no solution to install/update them for now.

Basic Information

  • Version with issue: .NET MAUI Preview 9
  • Last known good version: NA
  • IDE: VS 2022 Preview 5 (17.0.0 Preview 5.0)
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

dotnetmaui-preview9-component-issue-1 dotnetmaui-preview9-component-issue-2 dotnetmaui-preview9-component-issue-3 dotnetmaui-preview9-component-issue-4

Reproduction Link

Workaround

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
mindtalk69commented, Oct 13, 2021

I got mine problem as well, but did resolve which follow like the other preview.

The recommended fix is to manually delete everything under “C:\Program Files\dotnet\metadata\workloads” and then install the workloads manually followed by another run at maui-check. And yup maui-check still help for me.

hope it helps.

2reactions
dhabierrecommented, Nov 19, 2021

Many errors here too after VS update (=> 17.1.0 Preview 1.1)

First quit all VS instances

Then I deleted the content of C:\Program Files\dotnet\metadata\workloads\ (thanks to @mindtalk69)

Finally Powershell with admin rights

dotnet workload update
dotnet workload list
dotnet workload install maui
dotnet workload install maui-android
dotnet workload install maui-ios
maui-check

And all these issues disappeared. Hop it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot known issues - .NET MAUI
If you're still unable to access the Xcode > Preferences > Locations > Command Line Tools drop-down, run the following command:.
Read more >
NET MAUI Project Issues - visual studio
On PC: IMHO, DON'T run mauicheck. NOR any "old" way of installing Maui workload. (On Mac, VS 17.3.0 Preview 1.1 still requires a...
Read more >
.NET MAUI Preview 7 - Full Windows & Mac Setup with CLI ...
NET MAUI app for iOS & Mac Catalyst 17:20 - . NET MAUI Setup on Windows with Visual Studio 2022 20:30 - File,...
Read more >
Add MAUI support in Rider : RIDER-62127 - YouTrack
Hi everyone there. We are working on it. You will be able to try to build/run/debug MAUI project in the very first EAP...
Read more >
Getting Started With MAUI Xamarin Forms Application ...
Open Run CMD as an Administrator mode and install the MAUI Check tool using the below line. dotnet tool install -g Redth.Net.Maui.Check.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found