Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem installing Android workload for MAUI Visual Studio 2022

I have installed Visual Studio 2022 Preview 4.1 according to these instructions: https://learn.microsoft.com/en-us/dotnet/maui/get-started/installation. I started a new CometApp project and I get the following error: NU1012 Platform version is not present for one or more target frameworks, even though they have specified a platform: net6.0-maccatalyst, net6.0-ios, net6.0-android.

I then run: dotnet workload install android

....and get the following error.

Failed to update the advertising manifest microsoft.net.workload.emscripten: Failed to validate package signing.

Verifying Microsoft.NET.Workload.Emscripten.Manifest-6.0.100.6.0.0-rtm.21505.3

error: NU3004: The package is not signed.

Package signature validation failed.

. Failed to update the advertising manifest microsoft.net.workload.mono.toolchain: Failed to validate package signing.

Verifying Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100.6.0.0-rtm.21508.16

error: NU3004: The package is not signed.

Package signature validation failed.

I have already added this source to Nuget config:

https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json

Any suggestions to what might be the issue?

like image 463
Bjørn Hellesylt Avatar asked Mar 21 '26 18:03

Bjørn Hellesylt


2 Answers

For me it helped to:

  1. Close Visual Studio
  2. Delete everything from C:\Program Files\dotnet\metadata\workloads
  3. Run dotnet workload install maui in command line
like image 169
Wojciech Stańczewski Avatar answered Mar 23 '26 06:03

Wojciech Stańczewski


This issue was resolved after installing the Microsoft Visual 2022 - Preview Version 17.1.0

like image 43
Bjørn Hellesylt Avatar answered Mar 23 '26 07:03

Bjørn Hellesylt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!