7

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?

Bjørn Hellesylt
  • 805
  • 2
  • 7
  • 10

2 Answers2

13

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
2

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

Bjørn Hellesylt
  • 805
  • 2
  • 7
  • 10