'dotnet tool restore' for maui repo fails on macOS
See original GitHub issueDescription
Following the MAUI Development Guide, I get the folling output for the dotnet tool restore step:
dotnet tool restore /var/folders/2_/b4md0kx56ss9ffwn_qf17c5w0000gn/T/q5juhwll.f0x/restore.csproj : error NU1101: Unable to find package microsoft.dotnet.xharness.cli. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, nuget.org
Package “microsoft.dotnet.xharness.cli” failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored. at Microsoft.DotNet.Tools.Tool.Install.ProjectRestorer.Restore(FilePath project, PackageLocation packageLocation, String verbosity) at Microsoft.DotNet.ToolPackage.ToolPackageInstaller.InstallPackageToExternalManagedLocation(PackageLocation packageLocation, PackageId packageId, VersionRange versionRange, String targetFramework, String verbosity) at Microsoft.DotNet.Tools.Tool.Restore.ToolRestoreCommand.InstallPackages(ToolManifestPackage package, Nullable`1 configFile)
Tool ‘cake.tool’ (version ‘1.2.0’) was restored. Available commands: dotnet-cake Tool ‘powershell’ (version ‘7.2.1’) was restored. Available commands: pwsh Tool ‘api-tools’ (version ‘1.3.3’) was restored. Available commands: api-tools
Restore partially failed.
Steps to Reproduce
- Install :NET 6 SDK, Powershell, XCode
cd $(MAUI_REPO)dotnet tool restore
Link to public reproduction project repository
https://github.com/dotnet/maui
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
MacOS Monterey
Did you find any workaround?
No
Relevant log output
See description
Issue Analytics
- State:
- Created a year ago
- Comments:10 (2 by maintainers)

Top Related StackOverflow Question
@xleon thanks! I doubt that would work though… Are we talking about the same thing?
@ChristophSchmidpeter looking at the output it doesn’t seem to pick up on the NuGet feed sources in the nuget.config file. Could you see why maybe that is? And/or add
--source {url}(you can do this multiple times for multiple sources) for each of the sources in the nuget.config file manually and see if that helps?This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.