Open praveenmohanmm opened 2 years ago
same here
I´ve succeed to update to latest maui version and run a maui project for windows and android, here you have my steps:
dotnet nuget locals all --clear
dotnet workload list
<-- that returned me all the workloads (if you see any android-aot, remove it the first one and then proceed with the rest)
dotnet workload uninstall <Name of the Workload>
dotnet workload install android ios maccatalyst tvos macos maui wasm-tools --from-rollback-file https://aka.ms/dotnet/maui/preview.12.json --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json --no-cache
Note: I experienced issues with the old examples on windows, I´ve fix them by opening the Package.appxmanifest and remove all the "Assets" before any image
Attempted following @Rabosa616 steps but I get the following error on step 3:
`dotnet workload install android ios maccatalyst tvos macos maui wasm-tools --from-rollback-file https://aka.ms/dotnet/maui/preview.12.json --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json --no-cache
Invalid rollback definition. The manifest IDs in rollback definition https://aka.ms/dotnet/maui/preview.12.json do not match installed manifest IDs (microsoft.net.workload.mono.toolchain, 6.0.2-mauipre.1.22054.8, 7.0.200). Downloading microsoft.net.sdk.android.manifest-7.0.200.msi.x64 (31.0.200-preview.12.2) Workload installation failed. Rolling back installed packs... Workload installation failed: One or more errors occurred. (microsoft.net.sdk.android.manifest-7.0.200.msi.x64::31.0.200-preview.12.2 is not found in NuGet feeds https://aka.ms/dotnet6/nuget/index.json;https://api.nuget.org/v3/index.json".)`
It's being impossible to work with that, spent hours with this MAUI setup already, UNBELIEVABLE.
PS C:\Users\pmohan> maui-check
_ | |\ | | | | | | | | | / \ | || | | | () || _| |____| || || || // _\ ___/ |___|
.NET MAUI Check v0.10.0.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... ok » Scheduling appointments... ok
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Recommendation: Download .NET SDK (6.0.200) ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! Attempt to fix? [y/n] (y): y » Attempting to fix: .NET SDK Downloading .NET SDK 6.0.200... Downloading... 100%... Downloaded .NET SDK 6.0.200. Installing .NET SDK 6.0.200... Fix failed - An error occurred trying to start process 'C:\Users\pmohan\AppData\Local\Temp\dotnet-sdk-6.0.200-win-x64.exe' with working directory 'C:\Users\pmohan'. The specified executable is not a valid application for this OS platform.
x Skipped: .NET SDK - Workload Deduplication
x Skipped: .NET SDK - Workloads (6.0.200) ─────────────────────────────────────────────────