简体   繁体   中英

Problem installing Android workload for MAUI Visual Studio 2022

I have installed Visual Studio 2022 Preview 4.1 according to these instructions: https://docs.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?

安装 Microsoft Visual 2022 - 预览版 17.1.0 后,此问题已解决

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM