dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
20.96k stars 4.91k forks source link

Workload with id microsoft-maccatalyst-sdk-full is not recognized. #6562

Open rndev707 opened 3 years ago

rndev707 commented 3 years ago

Description

$ sudo dotnet workload install microsoft-maccatalyst-sdk-full

Workload with id microsoft-maccatalyst-sdk-full is not recognized.
install
  Install a workload.

Usage:
  dotnet [options] workload install [<WORKLOAD_ID>...]

Arguments:
  <WORKLOAD_ID>  The NuGet Package Id of the workload to install.

Options:
  --sdk-version <VERSION>                 The version of the SDK.
  --configfile <FILE>                     The NuGet configuration file to use.
  -s, --source <SOURCE>                   The NuGet package source to use 
                                          during the restore.
  --skip-manifest-update                  Skip updating the workload manifests.
  --from-cache <from-cache>               Complete the operation from cache 
                                          (offline).
  --download-to-cache                     Download packages needed to install a 
  <download-to-cache>                     workload to a folder which can be 
                                          used for offline installation.
  --include-previews                      Allow prerelease workload manifests.
  --temp-dir <temp-dir>                   Configure the temporary directory 
                                          used for this command (must be 
                                          secure).
  --disable-parallel                      Prevent restoring multiple projects 
                                          in parallel.
  --ignore-failed-sources                 Treat package source failures as 
                                          warnings.
  --no-cache                              Do not cache packages and http 
                                          requests.
  --interactive                           Allows the command to stop and wait 
                                          for user input or action (for example 
                                          to complete authentication).
  -v, --verbosity                         Set the MSBuild verbosity level. 
  <d|detailed|diag|diagnostic|m|minimal|  Allowed values are q[uiet], 
  n|normal|q|quiet>                       m[inimal], n[ormal], d[etailed], and 
                                          diag[nostic].
  -?, -h, --help                          Show help and usage information

Configuration

Regression?

Other information

ryank425 commented 3 years ago

It seems to be that all of those listed to be updated in the future actually got updated.

https://github.com/dotnet/maui-samples

microsoft-android-sdk-full (changing to android in a future release) microsoft-ios-sdk-full (changing to ios in a future release) microsoft-maccatalyst-sdk-full (changing to maccatalyst in a future release) microsoft-macos-sdk-full (changing to macos in a future release) microsoft-tvos-sdk-full (changing to tvos in a future release)

Searching for "mac*" packages shows following results

% dotnet workload search "mac"

Workload ID           Description                       
--------------------------------------------------------
maccatalyst           Microsoft MacCatalyst SDK for .NET
macos                 Microsoft macOS SDK for .NET      
maui-maccatalyst      .NET MAUI SDK for Mac Catalyst    
rndev707 commented 3 years ago

@ryalanms the problem is this error message appears even though I install with other id like maui-windows. I'm not sure how to avoid it.

$ sudo dotnet workload install maui-windows                       

Skip NuGet package signing validation. NuGet signing validation is not available on Linux or macOS https://aka.ms/workloadskippackagevalidation .
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.maui.
Installing workload manifest microsoft.net.sdk.tvos version 15.0.100-preview.7228.
Installing workload manifest microsoft.net.sdk.maui version 6.0.100-rc.1.1349.
Installing workload manifest microsoft.net.sdk.macos version 12.0.100-preview.7228.
Installing workload manifest microsoft.net.workload.emscripten version 6.0.0-rc.1.21409.2.
Installing workload manifest microsoft.net.sdk.maccatalyst version 15.0.100-preview.7228.
Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-rc.1.21410.10.
Installing pack Microsoft.Maui.Core.Ref.win version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.win version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Core.Runtime.win version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.win version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Controls.Ref.win version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.win version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Controls.Runtime.win version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.win version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Essentials.Ref.win version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.win version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Essentials.Runtime.win version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.win version 6.0.100-rc.1.1349...
Installing pack Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Dependencies version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Dependencies version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Controls.Sdk version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Controls.Sdk version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Extensions version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Extensions version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Resizetizer.Sdk version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Resizetizer.Sdk version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Templates version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Templates version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Core.Ref.any version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Core.Ref.any version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Core.Runtime.any version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Core.Runtime.any version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Controls.Ref.any version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Controls.Ref.any version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Controls.Runtime.any version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Controls.Runtime.any version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Essentials.Ref.any version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Essentials.Ref.any version 6.0.100-rc.1.1349...
Installing pack Microsoft.Maui.Essentials.Runtime.any version 6.0.100-rc.1.1349...
Writing workload pack installation record for Microsoft.Maui.Essentials.Runtime.any version 6.0.100-rc.1.1349...
Workload installation failed, rolling back installed packs...
Installing workload manifest microsoft.net.sdk.tvos version 15.0.100-preview.7.230.
Installing workload manifest microsoft.net.sdk.maui version 6.0.100-preview.7.1345.
Installing workload manifest microsoft.net.sdk.macos version 12.0.100-preview.7.230.
Installing workload manifest microsoft.net.workload.emscripten version 6.0.0-preview.7.21377.2.
Installing workload manifest microsoft.net.sdk.maccatalyst version 15.0.100-preview.7.230.
Installing workload manifest microsoft.net.workload.mono.toolchain version 6.0.0-preview.7.21377.19.
Installation roll back failed: Workload not found: microsoft-maccatalyst-sdk-full. Known workloads: tvos android android-aot maui maui-mobile maui-desktop maui-core maui-android maui-maccatalyst maui-ios maui-windows macos microsoft-net-sdk-emscripten maccatalyst ios wasm-tools microsoft-net-runtime-android microsoft-net-runtime-android-aot microsoft-net-runtime-ios runtimes-ios microsoft-net-runtime-maccatalyst runtimes-maccatalyst microsoft-net-runtime-macos microsoft-net-runtime-tvos runtimes-tvos microsoft-net-runtime-mono-tooling
Rolling back pack Microsoft.Maui.Core.Ref.win installation...
Uninstalling workload pack Microsoft.Maui.Core.Ref.win version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Core.Runtime.win installation...
Uninstalling workload pack Microsoft.Maui.Core.Runtime.win version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Controls.Ref.win installation...
Uninstalling workload pack Microsoft.Maui.Controls.Ref.win version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Controls.Runtime.win installation...
Uninstalling workload pack Microsoft.Maui.Controls.Runtime.win version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Essentials.Ref.win installation...
Uninstalling workload pack Microsoft.Maui.Essentials.Ref.win version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Essentials.Runtime.win installation...
Uninstalling workload pack Microsoft.Maui.Essentials.Runtime.win version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.AspNetCore.Components.WebView.Maui installation...
Uninstalling workload pack Microsoft.AspNetCore.Components.WebView.Maui version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Dependencies installation...
Uninstalling workload pack Microsoft.Maui.Dependencies version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Controls.Sdk installation...
Uninstalling workload pack Microsoft.Maui.Controls.Sdk version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Extensions installation...
Uninstalling workload pack Microsoft.Maui.Extensions version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Resizetizer.Sdk installation...
Uninstalling workload pack Microsoft.Maui.Resizetizer.Sdk version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Templates installation...
Uninstalling workload pack Microsoft.Maui.Templates version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Core.Ref.any installation...
Uninstalling workload pack Microsoft.Maui.Core.Ref.any version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Core.Runtime.any installation...
Uninstalling workload pack Microsoft.Maui.Core.Runtime.any version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Controls.Ref.any installation...
Uninstalling workload pack Microsoft.Maui.Controls.Ref.any version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Controls.Runtime.any installation...
Uninstalling workload pack Microsoft.Maui.Controls.Runtime.any version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Essentials.Ref.any installation...
Uninstalling workload pack Microsoft.Maui.Essentials.Ref.any version 6.0.100-rc.1.1349.
Rolling back pack Microsoft.Maui.Essentials.Runtime.any installation...
Uninstalling workload pack Microsoft.Maui.Essentials.Runtime.any version 6.0.100-rc.1.1349.
Workload installation failed: Workload not found: microsoft-maccatalyst-sdk-full. Known workloads: tvos android android-aot maui maui-mobile maui-desktop maui-core maui-android maui-maccatalyst maui-ios maui-windows macos microsoft-net-sdk-emscripten maccatalyst ios wasm-tools microsoft-net-runtime-android microsoft-net-runtime-android-aot microsoft-net-runtime-ios runtimes-ios microsoft-net-runtime-maccatalyst runtimes-maccatalyst microsoft-net-runtime-macos microsoft-net-runtime-tvos runtimes-tvos microsoft-net-runtime-mono-tooling
install
  Install a workload.

Usage:
  dotnet [options] workload install [<WORKLOAD_ID>...]

Arguments:
  <WORKLOAD_ID>  The NuGet Package Id of the workload to install.

Options:
  --sdk-version <VERSION>                                The version of the SDK.
  --configfile <FILE>                                    The NuGet configuration file to use.
  -s, --source <SOURCE>                                  The NuGet package source to use during the restore.
  --skip-manifest-update                                 Skip updating the workload manifests.
  --from-cache <from-cache>                              Complete the operation from cache (offline).
  --download-to-cache <download-to-cache>                Download packages needed to install a workload to a 
                                                         folder which can be used for offline installation.
  --include-previews                                     Allow prerelease workload manifests.
  --temp-dir <temp-dir>                                  Configure the temporary directory used for this 
                                                         command (must be secure).
  --disable-parallel                                     Prevent restoring multiple projects in parallel.
  --ignore-failed-sources                                Treat package source failures as warnings.
  --no-cache                                             Do not cache packages and http requests.
  --interactive                                          Allows the command to stop and wait for user input 
                                                         or action (for example to complete authentication).
  -v, --verbosity                                        Set the MSBuild verbosity level. Allowed values are 
  <d|detailed|diag|diagnostic|m|minimal|n|normal|q|quie  q[uiet], m[inimal], n[ormal], d[etailed], and 
  t>                                                     diag[nostic].
  -?, -h, --help                                         Show help and usage information
ryank425 commented 3 years ago

Do you have correct urls for your NuGet.config? I am not seeing an request install microsoft-maccatalyst-sdk-full while I run your exact command in my MacBook to get maui-windows.

rndev707 commented 3 years ago

Here is the content of NuGet.Config.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" protocolVersion="3" />
    <add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" protocolVersion="3" />
    <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
    <add key="xamarin" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json" />
  </packageSources>
</configuration>
adamsitnik commented 3 years ago

@steveisok @Redth could you please take a look?

rndev707 commented 3 years ago

How can be microsoft-maccatalyst-sdk-full detected though the workload id doesn't exist? Is there any way to remove the id from workload?

VasiliiKapitanskii commented 3 years ago

On Mac, fixed by manual removing old preview versions (I guess the ps1 script here should work as well) and running maui-check --force-dotnet