[MacPorts] #65082: dotnet-sdk-6: unable to install global tool

MacPorts noreply at macports.org
Thu Apr 28 10:33:45 UTC 2022


#65082: dotnet-sdk-6: unable to install global tool
------------------------+--------------------------
 Reporter:  mohd-akram  |      Owner:  tsabirgaliev
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  dotnet-sdk-6
------------------------+--------------------------
 When I do:

 dotnet tool install --global dotnet-outdated-tool

 I get:


 {{{
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242: SDK Resolver Failure: "The SDK resolver
 "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed while attempting to
 resolve the SDK "Microsoft.NET.Sdk". Exception:
 "System.IO.DirectoryNotFoundException: Could not find a part of the path
 '/opt/local/share/dotnet/sdk-manifests'.
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String
 path, Boolean ignoreNotFound)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at System.IO.Enumeration.FileSystemEnumerator`1.Init()
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory,
 Boolean isNormalized, EnumerationOptions options)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory,
 FindTransform transform, EnumerationOptions options, Boolean isNormalized)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 System.IO.Enumeration.FileSystemEnumerableFactory.UserDirectories(String
 directory, String expression, EnumerationOptions options)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at System.IO.Directory.InternalEnumeratePaths(String
 path, String searchPattern, SearchTarget searchTarget, EnumerationOptions
 options)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at System.IO.Directory.GetDirectories(String path,
 String searchPattern, EnumerationOptions enumerationOptions)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at System.IO.Directory.GetDirectories(String path)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.FallbackForMissingManifest(String
 manifestId)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.GetManifestDirectories()
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.GetManifests()+MoveNext()
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.LoadManifestsFromProvider(IWorkloadManifestProvider
 manifestProvider)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.Create(IWorkloadManifestProvider
 manifestProvider, String dotnetRootPath, String sdkVersion, String
 userProfileDir)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.CachingWorkloadResolver.Resolve(String
 sdkReferenceName, String dotnetRootPath, String sdkVersion, String
 userProfileDir)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.WorkloadSdkResolver.Resolve(SdkReference
 sdkReference, SdkResolverContext resolverContext, SdkResultFactory
 factory)
 /var/folders/mw/d2jp6b715v59p7ghfyp6rr5c0000gn/T/ue0203oo.5gf/restore.csproj(5,31):
 error MSB4242:    at
 Microsoft.Build.BackEnd.SdkResolution.SdkResolverService.ResolveSdk(Int32
 submissionId, SdkReference sdk, LoggingContext loggingContext,
 ElementLocation sdkReferenceLocation, String solutionPath, String
 projectPath, Boolean interactive, Boolean isRunningInVisualStudio)""
 The tool package could not be restored.
 Tool 'dotnet-outdated-tool' failed to install. This failure may have been
 caused by:

 * You are attempting to install a preview release and did not use the
 --version option to specify the version.
 * A package by this name was found, but it was not a .NET tool.
 * The required NuGet feed cannot be accessed, perhaps because of an
 Internet connection problem.
 * You mistyped the name of the tool.

 For more reasons, including package naming enforcement, visit
 https://aka.ms/failure-installing-tool
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65082>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list