I run dotnet 5 on MacOS:
[Code] dotnet --info .NET SDK (reflecting any global.json): Version: 5.0.403 Commit: bf9d168ac2 Runtime Environment: OS Name: Mac OS X OS Version: 11.0 OS Platform: Darwin RID: osx.11.0-x64 Base Path: /usr/local/share/dotnet/sdk/5.0.403/ Host (useful for support): Version: 5.0.12 Commit: 7211aa01b3 .NET SDKs installed: 5.0.403 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 5.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
And I use JetBrains Rider (latest version) as IDE.
I tried to install dotnet 6 but it does not yet work, since I have a couple of dependencies which seem not to be ready yet (including JetBrains, it has only a preview).
So I uninstalled all SDK versions of DOTNET from my MAC using the uninstall tool provided by MS and re-installed the latest .NET 5.0 SDK. I also removed all tools I had installed.
When I try to install the
X tools for ServiceStack, I get a strange
NUGET error for my private MyGet repo. I have no tools installed at all:
[Code] dotnet tool list --global Package Id Version Commands ------------------------------------- [Code] dotnet tool list Package Id Version Commands Manifest ---------------------------------------------------
Here is the error I get:
[Code] dotnet tool install --global x /usr/local/share/dotnet/sdk/5.0.403/NuGet.targets(131,5): error : Failed to retrieve information about 'x' from remote source 'https://www.myget.org/F/bizbus/api/v3/flatcontainer/x/index.json'. [/var/folders/s1/vzpxz7916450_0l_hxqddq440000gn/T/3w4f4oex.g0h/restore.csproj] /usr/local/share/dotnet/sdk/5.0.403/NuGet.targets(131,5): error : Response status code does not indicate success: 401 (Unauthorized). [/var/folders/s1/vzpxz7916450_0l_hxqddq440000gn/T/3w4f4oex.g0h/restore.csproj] The tool package could not be restored. Tool 'x' 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
I don’t know why the tools installer tries to access my private MyGet repository. When I use Rider it usually asks for the password of the keystore/keyring and then gets the credentials from there. But now I try to install tools from the command-line without the IDE.
Is there any work around for this or any way to convince the tools installer not to look at private MyGet repos??
Thanks for any help.