`dotnet workload install` and maui-check fail [Bug]
See original GitHub issueDescription
Updating preview 6 to preview 7 fails with errors below.
Steps to Reproduce
Have MAUI workloads for preview 6 installed.
Run maui-check
or dotnet workload install
.
maui-check
output:
_ _ _____ _____ __ __ _ _ _ ___
| \ | | | ____| |_ _| | \/ | / \ | | | | |_ _|
| \| | | _| | | | |\/| | / _ \ | | | | | |
_ | |\ | | |___ | | | | | | / ___ \ | |_| | | |
(_) |_| \_| |_____| |_| |_| |_| /_/ \_\ \___/ |___|
βΌ .NET MAUI Check v0.6.1.0 βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
This tool will attempt to evaluate your .NET MAUI development environment.
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them
yourself.
Thanks for choosing .NET MAUI!
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Β» Synchronizing configuration...
Error: Error resolving type specified in JSON 'DotNetCheck.Manifest.NuGetFeedVariableMapper, MauiCheck'. Path
'check.variableMappers[0].$type', line 9, position 74.
dotnet workload install maui
output:
Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100-preview.7.21379.14
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.sdk.tvos.
Installing workload manifest microsoft.net.sdk.android version 30.0.100-preview.7.110.
Installing workload manifest microsoft.net.sdk.ios version 15.0.100-preview.7231.
Installing workload manifest microsoft.net.sdk.maccatalyst version 15.0.100-preview.7231.
Installing workload manifest microsoft.net.sdk.macos version 12.0.100-preview.7231.
Installing workload manifest microsoft.net.sdk.maui version 6.0.100-preview.7.1345.
Installing workload manifest microsoft.net.sdk.tvos version 15.0.100-preview.7231.
Installing pack Microsoft.Maui.Core.Ref.android version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.android version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Core.Runtime.android version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.android version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Ref.android version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.android version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Runtime.android version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.android version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Ref.android version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.android version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Runtime.android version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.android version 6.0.100-preview.7.1345...
Installing pack Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Dependencies version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Dependencies version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Sdk version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Sdk version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Extensions version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Extensions version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Resizetizer.Sdk version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Resizetizer.Sdk version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Templates version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Templates version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Core.Ref.any version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.any version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Core.Runtime.any version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.any version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Ref.any version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.any version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Runtime.any version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.any version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Ref.any version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.any version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Runtime.any version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.any version 6.0.100-preview.7.1345...
Installing pack Microsoft.Android.Sdk version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Sdk version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Sdk.BundleTool version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Sdk.BundleTool version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Ref version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Ref version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Runtime.android-arm version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Runtime.android-arm version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Runtime.android-arm64 version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Runtime.android-arm64 version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Runtime.android-x86 version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Runtime.android-x86 version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Runtime.android-x64 version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Runtime.android-x64 version 30.0.100-preview.7.110...
Installing pack Microsoft.Android.Templates version 30.0.100-preview.7.110...
Writing workload pack installation record for Microsoft.Android.Templates version 30.0.100-preview.7.110...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-arm64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-x64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.android-x86 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.android-x86 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoAOTCompiler.Task version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NET.Runtime.MonoTargets.Sdk version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NET.Runtime.MonoTargets.Sdk version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.Maui.Core.Ref.ios version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.ios version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Core.Runtime.ios version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.ios version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Ref.ios version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.ios version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Runtime.ios version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.ios version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Ref.ios version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.ios version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Runtime.ios version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.ios version 6.0.100-preview.7.1345...
Installing pack Microsoft.iOS.Sdk version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.iOS.Sdk version 15.0.100-preview.7.230...
Installing pack Microsoft.iOS.Windows.Sdk version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.iOS.Windows.Sdk version 15.0.100-preview.7.230...
Installing pack Microsoft.iOS.Ref version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.iOS.Ref version 15.0.100-preview.7.230...
Installing pack Microsoft.iOS.Templates version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.iOS.Templates version 15.0.100-preview.7.230...
Installing pack Microsoft.NETCore.App.Runtime.Mono.ios-arm version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.ios-arm version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.ios-arm64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.ios-arm64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.iossimulator-arm64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.iossimulator-x64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.iossimulator-x86 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.Maui.Core.Ref.maccatalyst version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.maccatalyst version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Core.Runtime.maccatalyst version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.maccatalyst version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Ref.maccatalyst version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.maccatalyst version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Runtime.maccatalyst version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.maccatalyst version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Ref.maccatalyst version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.maccatalyst version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Runtime.maccatalyst version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.maccatalyst version 6.0.100-preview.7.1345...
Installing pack Microsoft.MacCatalyst.Sdk version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.MacCatalyst.Sdk version 15.0.100-preview.7.230...
Installing pack Microsoft.MacCatalyst.Ref version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.MacCatalyst.Ref version 15.0.100-preview.7.230...
Installing pack Microsoft.MacCatalyst.Templates version 15.0.100-preview.7.230...
Writing workload pack installation record for Microsoft.MacCatalyst.Templates version 15.0.100-preview.7.230...
Installing pack Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.maccatalyst-arm64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64 version 6.0.0-preview.7.21377.19...
Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64 version 6.0.0-preview.7.21377.19...
Installing pack Microsoft.Maui.Core.Ref.win version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.win version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Core.Runtime.win version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.win version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Ref.win version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.win version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Controls.Runtime.win version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.win version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Ref.win version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.win version 6.0.100-preview.7.1345...
Installing pack Microsoft.Maui.Essentials.Runtime.win version 6.0.100-preview.7.1345...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.win version 6.0.100-preview.7.1345...
Garbage collecting for SDK feature bands 6.0.100...
Workload installation failed: The JSON value could not be converted to Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadPackId. Path: $.Id | LineNumber: 0 | BytePositionInLine: 29.
install
Install a workload.
Usage:
dotnet [options] workload install [<WORKLOAD_ID>...]
Arguments:
<WORKLOAD_ID> The NuGet Package Id of the workload to install.
Options:
--sdk-version <VERSION> The version of the SDK.
--configfile <FILE> The NuGet configuration file to use.
-s, --source <SOURCE> The NuGet package source to use during the restore.
--skip-manifest-update Skip updating the workload manifests.
--from-cache <from-cache> Complete the operation from cache (offline).
--download-to-cache <download-to-cache> Download packages needed to install a workload to a folder
which can be used for offline installation.
--include-previews Allow prerelease workload manifests.
--temp-dir <temp-dir> Configure the temporary directory used for this command
(must be secure).
--disable-parallel Prevent restoring multiple projects in parallel.
--ignore-failed-sources Treat package source failures as warnings.
--no-cache Do not cache packages and http requests.
--interactive Allows the command to stop and wait for user input or action
(for example to complete authentication).
-v, --verbosity Set the MSBuild verbosity level. Allowed values are q[uiet],
<d|detailed|diag|diagnostic|m|minimal|n|normal|q|quiet> m[inimal], n[ormal], d[etailed], and diag[nostic].
-?, -h, --help Show help and usage information
dotnet workload uninstall maui
output:
Removing workload installation record for maui...
Garbage collecting for SDK feature bands 6.0.100...
Workload uninstallation failed: The JSON value could not be converted to Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadPackId. Path: $.Id | LineNumber: 0 | BytePositionInLine: 29.
uninstall
Uninstall a workload.
Usage:
dotnet [options] workload uninstall [<WORKLOAD_ID>...]
Arguments:
<WORKLOAD_ID> The NuGet Package Id of the workload to install.
Options:
-?, -h, --help Show help and usage information
Expected Behavior
No Errors.
Actual Behavior
Errors as above.
Basic Information
- Version with issue: preview 6 to 7.
- Last known good version: preview 6.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
dotnet workload install maui - fails Β· Issue #2037
net.maui.check' failed to install. This failure may have been caused by: You are attempting to install a preview release and did not useΒ ......
Read more >Workload Repair failed: `dotnet workload repair - MAUI
What worked for me is run dotnet workload install maui manually. Then rerun maui-check to fix the rest of the things.
Read more >Troubleshoot known issues - .NET MAUI
Platform version isn't present. Visual Studio may not be resolving the required workloads if you try to compile a project and receive an...
Read more >MAUI on Mac - Visual Studio 2022 17.4.2 : r/dotnetMAUI
I now have a MAUI proj that builds and runs (in emulator) on all environments. And I'm still unable to run the maui-check...
Read more >macOS Environment Setup for MAUI Development
MAUI Check is a tool that determines if your environment is ready for MAUI development. While you could go about installing MAUI using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
canβt load maui-check for the same reason I canβt run the workload, got stuck in the initial update to preview 3 of 2022, have completedly unloaded, 2019 and 2022 and just loaded 2022 with dotnet 6 preview 7 with the same results.
Hey everyone! Sorry you are having issues. Things are moving fast with the previews and because of that, these versions are already βoldβ. You should not need to use
maui-check
anymore and can install this from the Visual Studio installer or with thedotnet workload
tool. Iβm going to assume you got it working in the meantime, if not, please open a new issue with all the details you have.Thanks!