Cannot install from command line
Trying to install to a new laptop - install the .NET 5.0.400 SDK and get the following:
dotnet tool install -g dotnet-repl
error NU1100: Unable to resolve 'dotnet-repl (>= 0.0.0)' for 'net5.0'. error NU1100: Unable to resolve 'dotnet-repl (>= 0.0.0)' for 'net5.0/any'. The tool package could not be restored. Tool 'dotnet-repl' 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.
Can you post the results of the following two commands from your terminal?
> dotnet nuget list source
> dotnet --info
dotnet nuget list source No sources found. PS C:\Users\johnc> dotnet --info .NET SDK (reflecting any global.json): Version: 5.0.400 Commit: d61950f9bf
Runtime Environment: OS Name: Windows OS Version: 10.0.19043 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.400\
Host (useful for support): Version: 5.0.9 Commit: 208e377a53
.NET SDKs installed: 5.0.400 [C:\Program Files\dotnet\sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
My nuget.config is 'empty'
If you create a nuget.config with an entry for nuget.org, I suspect it should fix this.
Did you get a chance to give this a try?