New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Workload installation failed: The JSON value could not be converted to #105
Comments
Hey I'm getting a very similar issue. Trying to upgrade from preview 6 and have already installed maui-check 7.3.0. I've already updated to VS 2022 Preview 3 and running maui-check results in it trying to repair the workload installation for maui. My error is very similar to @davidbuckleyni's:
Installation continues but results in the following:
This attempt was using the
I can see that the current version of the 'missing' package is "Microsoft.Maui.Core.Ref.android -Version 6.0.100-preview.7.1345" from three days ago when preview 7 was released. |
Upon further investigation this doesn't appear to be a maui-check issue. Trying to install the maui workloads manually using
|
Aaaaaaaaaaaaaaaaaaaaaaaaad....... In more recent developments, it appears that there was a manifest change a while ago in some of the json configs, so this issue is likely to occur when you have previously had Preview 6 installed. 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:
then
Worked for me: |
@Redth might be one for u to look above as to a fix for future releases |
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
Probally still be worth redth checking the json change and asking users to delete workloads to update? |
dotnet tool update -g redth.net.maui.check should do the trick (had the same problem) |
I also had an older preview of 6.0 installed and encountered the same errors with both maui-check and the dotnet workload install maui commands. +1 on the fix, #105 (comment) |
This helped me to install preview7 after having installed preview6:
|
@Redth buddy u could easily add remove preview versions before installing maybe would be a good option are u accepting pull request into the product. |
I still get this with Tool 'redth.net.maui.check' was reinstalled with the latest stable version (version '0.8.4'). Workload installation failed: One or more errors occurred. (microsoft.maui.core.ref.android.msi.x64::6.0.100-rc.1.1351 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages".)
|
Where are the workloads installed on macos? |
FYI I found it here /usr/local/share/dotnet/metadata/workloads |
Another thing that makes me upset about this tool is that if you say are using the rc.2 .NET SDK and do the steps above to properly install the RC.2 versions of MAUI, this tool then forces the uninstall of the RC.2 versions for the preview 7 ones which makes me mad because I want to keep those versions and use it with Visual Studio. Honestly I think the tool should check for Preview 7 (or newer) and if they have a version newer than Preview 7 installed (like rc.1 or rc.2) to use that to install maui (or the templates to maui) on. |
Same here |
That's work for me if I want to use the maui preview8.
2.Delete the maui-check tool: 3.Uninstall VS2012 Preview4 4.Reinstall VS2012 Preview4 5.Reinstall maui-check tool: 6.Do check script: |
Just run this script https://github.com/Redth/dotnet-maui-check/blob/main/Clean-Old-DotNet6-Previews.ps1 |
These should be steps done by maui check user should not need to do all this @Redth |
Fixed my issue. |
Seems to be still an issue here
|
Please, check these links. I had the same issue. Following these instructions, it worked here. |
Issue with IOS work load on windows 10
More specificially this line
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.
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.ios.
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.tvos version 15.0.100-preview.7231.
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.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.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.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...
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.
The text was updated successfully, but these errors were encountered: